fix lint
This commit is contained in:
parent
faffffed7b
commit
25b9d28858
1 changed files with 2 additions and 0 deletions
|
@ -12,12 +12,14 @@ def move_username(apps, schema_editor):
|
|||
u.username = u.mastodon_username + "@" + u.mastodon_site
|
||||
u.save()
|
||||
|
||||
|
||||
def clear_username(apps, schema_editor):
|
||||
User = apps.get_model("users", "User")
|
||||
for u in User.objects.all():
|
||||
u.username = None
|
||||
u.save()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("users", "0004_alter_preference_classic_homepage"),
|
||||
|
|
Loading…
Add table
Reference in a new issue