This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/core/migrations/0003_invite.py

32 lines
1 KiB
Python
Raw Normal View History

2018-12-10 12:48:22 +00:00
# Generated by Django 2.1.4 on 2018-12-10 12:13
2018-12-10 12:51:16 +00:00
import uuid
import django.db.models.deletion
2018-12-10 12:48:22 +00:00
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('passbook_core', '0002_auto_20181210_1011'),
]
operations = [
migrations.CreateModel(
name='Invite',
fields=[
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('expires', models.DateTimeField(blank=True, default=None, null=True)),
('fixed_username', models.TextField(blank=True, default=None)),
('fixed_email', models.TextField(blank=True, default=None)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'Invite',
2018-12-10 13:21:42 +00:00
'verbose_name_plural': 'Invitations',
2018-12-10 12:48:22 +00:00
},
),
]