Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
484 B
1
Indexable
Never
# Generated by Django 4.1.2 on 2023-06-25 12:18
from django.contrib.auth.models import Group
from django.db import migrations


def create_groups():
    teachers_group = Group(name="Teachers")
    students_group = Group(name="Students")

    teachers_group.save()
    students_group.save()


class Migration(migrations.Migration):

    dependencies = [
        ('auth', '__latest__'),
    ]

    operations = [
        migrations.RunPython(create_groups),
    ]