1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-02-15 17:05:17 +00:00
webvirtcloud/accounts/migrations/0003_usersshkey.py
Gao Jiangmiao 3488661dc9 Migrate to django 2.2.4
The django.core.urlresolvers module is removed in favor of its new location, django.urls.
The on_delete argument for ForeignKey and OneToOneField is required in models and migrations.
2019-08-16 13:07:59 +08:00

23 lines
767 B
Python

from django.db import models, migrations
from django.conf import settings
from django.db.models import CASCADE
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('accounts', '0002_auto_20150325_0846'),
]
operations = [
migrations.CreateModel(
name='UserSSHKey',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('keyname', models.CharField(max_length=25)),
('keypublic', models.CharField(max_length=500)),
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=CASCADE)),
],
),
]