website/www/conservancy/apps/staff/migrations/0002_auto_20211128_2112.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

20 lines
453 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):
dependencies = [
('staff', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='person',
name='username',
field=models.CharField(max_length=20, unique=True),
),
]