fix: use Sex choices with all
This commit is contained in:
parent
364a6f32f4
commit
a965f26d48
@ -0,0 +1,22 @@
|
|||||||
|
# Generated by Django 5.1.4 on 2024-12-31 10:37
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('fellchensammlung', '0028_searchsubscription'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RenameModel(
|
||||||
|
old_name='AndoptionNoticeNotification',
|
||||||
|
new_name='AdoptionNoticeNotification',
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='searchsubscription',
|
||||||
|
name='sex',
|
||||||
|
field=models.CharField(choices=[('F', 'Weiblich'), ('M', 'Männlich'), ('M_N', 'Männlich, kastriert'), ('F_N', 'Weiblich Kastriert'), ('I', 'Intergeschlechtlich'), ('A', 'Alle')], max_length=20),
|
||||||
|
),
|
||||||
|
]
|
@ -560,7 +560,7 @@ class SearchSubscription(models.Model):
|
|||||||
"""
|
"""
|
||||||
owner = models.ForeignKey(User, on_delete=models.CASCADE)
|
owner = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||||
location = models.ForeignKey(Location, on_delete=models.PROTECT)
|
location = models.ForeignKey(Location, on_delete=models.PROTECT)
|
||||||
sex = models.CharField(max_length=20, choices=SexChoices.choices)
|
sex = models.CharField(max_length=20, choices=SexChoicesWithAll.choices)
|
||||||
radius = models.IntegerField(choices=DistanceChoices.choices)
|
radius = models.IntegerField(choices=DistanceChoices.choices)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user