39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.10.2 on 2016-11-19 02:48
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
import django.contrib.auth.models
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('auth', '0008_alter_user_username_max_length'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Townie',
|
||
|
fields=[
|
||
|
('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
|
||
|
('pubkey', models.TextField()),
|
||
|
('shell', models.TextField(default='/bin/bash', max_length=50)),
|
||
|
('pending', models.BooleanField(default=True)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'user',
|
||
|
'verbose_name_plural': 'users',
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('auth.user',),
|
||
|
managers=[
|
||
|
('objects', django.contrib.auth.models.UserManager()),
|
||
|
],
|
||
|
),
|
||
|
]
|