Add migration to remove unused "standard" group

This commit is contained in:
Christopher C. Wells 2023-02-08 19:47:47 -08:00 committed by Christopher Charbonneau Wells
parent a40b3c6f93
commit 1faabdde9d
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# Generated by Django 4.1.6 on 2023-02-09 03:36
from django.db import migrations
from django.contrib.auth.models import Group
def remove_standard_group(apps, schema_editor):
Group.objects.filter(name="standard").delete()
class Migration(migrations.Migration):
dependencies = [
("babybuddy", "0026_alter_settings_timezone"),
]
operations = [migrations.RunPython(remove_standard_group)]