add purchace limitations system for rancher - add incentive plans to rancher entries data
This commit is contained in:
18
apps/herd/migrations/0017_rancher_ignore_purchase_limit.py
Normal file
18
apps/herd/migrations/0017_rancher_ignore_purchase_limit.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-08-26 07:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('herd', '0016_rancher_activity_rancher_heavy_livestock_number_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='rancher',
|
||||
name='ignore_purchase_limit',
|
||||
field=models.BooleanField(default=False, help_text='if its true rancher has not buy limitations'),
|
||||
),
|
||||
]
|
||||
@@ -127,6 +127,9 @@ class Rancher(BaseModel):
|
||||
null=True
|
||||
)
|
||||
without_herd = models.BooleanField(default=False)
|
||||
ignore_purchase_limit = models.BooleanField(
|
||||
default=False, help_text="if its true rancher has not buy limitations"
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return f'rancher: {self.first_name} {self.last_name}'
|
||||
|
||||
Reference in New Issue
Block a user