From e6f5a42d15cccf465ac5c674a68e0778b5ecab83 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 21 Nov 2024 20:35:09 +0100 Subject: [PATCH] feat: Add intersex option for animals Intersex rats are rare but well documented. --- .../migrations/0024_alter_animal_sex.py | 18 ++++++++++++++++++ src/fellchensammlung/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/fellchensammlung/migrations/0024_alter_animal_sex.py diff --git a/src/fellchensammlung/migrations/0024_alter_animal_sex.py b/src/fellchensammlung/migrations/0024_alter_animal_sex.py new file mode 100644 index 0000000..141a08f --- /dev/null +++ b/src/fellchensammlung/migrations/0024_alter_animal_sex.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.1 on 2024-11-21 19:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0023_user_email_notifications'), + ] + + operations = [ + migrations.AlterField( + model_name='animal', + name='sex', + field=models.CharField(choices=[('M_N', 'neutered male'), ('M', 'male'), ('F_N', 'neutered female'), ('F', 'female'), ('I', 'intersex')], max_length=20), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 6d3812b..e3fc1b2 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -462,6 +462,7 @@ class SexChoices(models.TextChoices): MALE = "M", "male" FEMALE_NEUTERED = "F_N", "neutered female" FEMALE = "F", "female" + INTER = "I", "intersex" class Animal(models.Model):