forked from data.coop/membersystem
Mikkel Munch Mortensen
7f01d9a277
And move the to "parked_apps" directory, until we've decided what we want to do with them.
74 lines
2.7 KiB
Python
74 lines
2.7 KiB
Python
# Generated by Django 2.2.4 on 2019-08-31 18:44
|
|
import uuid
|
|
|
|
from django.db import migrations
|
|
from django.db import models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [("auth", "0011_update_proxy_permissions")]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="User",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("password", models.CharField(max_length=128, verbose_name="password")),
|
|
(
|
|
"last_login",
|
|
models.DateTimeField(
|
|
blank=True, null=True, verbose_name="last login"
|
|
),
|
|
),
|
|
("nick", models.CharField(blank=True, max_length=60, null=True)),
|
|
(
|
|
"email",
|
|
models.EmailField(
|
|
help_text="Your email address will be used for password resets and notification about your event/submissions.",
|
|
max_length=254,
|
|
unique=True,
|
|
verbose_name="E-Mail",
|
|
),
|
|
),
|
|
("is_active", models.BooleanField(default=True)),
|
|
("is_staff", models.BooleanField(default=False)),
|
|
("is_superuser", models.BooleanField(default=False)),
|
|
("token_uuid", models.UUIDField(default=uuid.uuid4, editable=False)),
|
|
(
|
|
"groups",
|
|
models.ManyToManyField(
|
|
blank=True,
|
|
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
|
|
related_name="user_set",
|
|
related_query_name="user",
|
|
to="auth.Group",
|
|
verbose_name="groups",
|
|
),
|
|
),
|
|
(
|
|
"user_permissions",
|
|
models.ManyToManyField(
|
|
blank=True,
|
|
help_text="Specific permissions for this user.",
|
|
related_name="user_set",
|
|
related_query_name="user",
|
|
to="auth.Permission",
|
|
verbose_name="user permissions",
|
|
),
|
|
),
|
|
],
|
|
options={"verbose_name": "User"},
|
|
)
|
|
]
|