some changes
This commit is contained in:
18
apps/livestock/migrations/0013_livestock_archive.py
Normal file
18
apps/livestock/migrations/0013_livestock_archive.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-08-06 08:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('livestock', '0012_livestocktype_weight_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='livestock',
|
||||
name='archive',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
@@ -88,6 +88,7 @@ class LiveStock(BaseModel):
|
||||
(2, 'female')
|
||||
)
|
||||
gender = models.IntegerField(choices=gender_type, default=1)
|
||||
archive = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.type.name}-{self.species.name}'
|
||||
|
||||
Reference in New Issue
Block a user