UPDATE
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user