website/www/conservancy/apps/staff/migrations/0001_initial.py
Ben Sturmfels 457e5739f7
Add unique constraint to Staff.username.
Previously had some duplicates for "pono" which were causing
MultipleObjectsReturned errors. A username is generally considered to be unique.
2021-11-29 14:31:26 +11:00

31 lines
1,001 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2021-11-28 21:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=20)),
('formal_name', models.CharField(max_length=200)),
('casual_name', models.CharField(max_length=200)),
('currently_employed', models.BooleanField(default=True)),
('date_created', models.DateTimeField(auto_now_add=True)),
('date_last_modified', models.DateTimeField(auto_now=True)),
],
options={
'verbose_name_plural': 'people',
},
),
]