init
This commit is contained in:
@@ -46,7 +46,7 @@ class Command(BaseCommand):
|
||||
for name, task in self.task_schedule.items():
|
||||
if name not in self.histories or time.time() - self.histories[name] > task["schedule"]:
|
||||
self.call_func(name)
|
||||
time.sleep(0.5)
|
||||
time.sleep(1)
|
||||
|
||||
def exit_gracefully(self, signum, frame):
|
||||
self.stdout.write(self.style.SUCCESS("exit"))
|
||||
|
||||
@@ -8,6 +8,7 @@ from .models import User, FriendRequest, Invitation
|
||||
|
||||
@admin.register(User)
|
||||
class UserAdmin(BaseUserAdmin):
|
||||
ordering = ["pk"]
|
||||
# add_form = UserCreationForm
|
||||
form = UserChangeForm
|
||||
fieldsets = BaseUserAdmin.fieldsets + (
|
||||
|
||||
Reference in New Issue
Block a user