mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
17
people/migrations/0053_organisation_order_name.py
Normal file
17
people/migrations/0053_organisation_order_name.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 2.2.10 on 2021-05-09 12:51
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('people', '0052_allow_multiple_nationalities'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='organisation',
|
||||
options={'ordering': ['name']},
|
||||
),
|
||||
]
|
||||
@@ -39,6 +39,9 @@ class OrganisationQuestionChoice(QuestionChoice):
|
||||
|
||||
class Organisation(models.Model):
|
||||
"""Organisation to which a :class:`Person` belongs."""
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
||||
name = models.CharField(max_length=255, blank=False, null=False)
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user