count livestocks by type & set in herd model by signals

This commit is contained in:
2025-10-07 12:02:30 +03:30
parent f93e48c495
commit cad4ccbe4b
4 changed files with 49 additions and 1 deletions

View File

@@ -4,3 +4,6 @@ from django.apps import AppConfig
class LivestockConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.livestock'
def ready(self):
import apps.livestock.signals