lemoncurry/users/migrations/0003_key.py

41 lines
1.2 KiB
Python
Raw Permalink Normal View History

2017-10-22 21:33:24 -04:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-23 01:25
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):
dependencies = [
2023-08-10 02:52:37 -04:00
("users", "0002_auto_20171023_0109"),
2017-10-22 21:33:24 -04:00
]
operations = [
migrations.CreateModel(
2023-08-10 02:52:37 -04:00
name="Key",
2017-10-22 21:33:24 -04:00
fields=[
2023-08-10 02:52:37 -04:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("fingerprint", models.CharField(max_length=40)),
("file", models.FileField(upload_to="keys")),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="keys",
to=settings.AUTH_USER_MODEL,
),
),
2017-10-22 21:33:24 -04:00
],
),
]