18 lines
479 B
Python
18 lines
479 B
Python
from django.apps import AppConfig
|
|
from functools import cached_property
|
|
|
|
|
|
class PestDiseaseConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "pest_disease"
|
|
verbose_name = "Pest & Disease"
|
|
|
|
@cached_property
|
|
def risk_summary_service(self):
|
|
from .services import build_pest_disease_risk_summary
|
|
|
|
return build_pest_disease_risk_summary
|
|
|
|
def get_risk_summary_service(self):
|
|
return self.risk_summary_service
|