You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
2 years ago
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.9.13 on 2018-10-21 13:36
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Key',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('key', models.CharField(max_length=255)),
|
||
|
('group', models.SlugField(blank=True, max_length=32, null=True)),
|
||
|
('pub_date', models.DateTimeField(auto_now_add=True)),
|
||
|
('expires', models.DateTimeField(blank=True, null=True)),
|
||
|
('activated', models.DateTimeField(blank=True, null=True)),
|
||
|
('activated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='activation_keys', to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
options={
|
||
|
'get_latest_by': 'pub_date',
|
||
|
'ordering': ('-pub_date',),
|
||
|
'db_table': 'nano_activation_code',
|
||
|
},
|
||
|
),
|
||
|
]
|