Skip to content

initial_data

management.initial_data ¤

Functions¤

create_user_group(apps, schema_editor) ¤

Create the standard user group This function is run in migrations/0002_initial_data.py as an initial data migration at project initialization.

Source code in management/initial_data.py
4
5
6
7
8
9
def create_user_group(apps, schema_editor):
    """Create the standard user group
    This function is run in migrations/0002_initial_data.py as an initial
    data migration at project initialization.
    """
    Group.objects.create(name="Standard")