Projet

Général

Profil

Télécharger (508 octets) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / dossiers / __init__.py @ d17efc19

1
from django.apps import AppConfig
2

    
3

    
4
class DossiersConfig(AppConfig):
5
    name = 'calebasse.dossiers'
6

    
7
    def ready(self):
8
        PatientRecord = self.get_model('PatientRecord')
9
        PatientRecord.DEFICIENCY_FIELDS = [field for field in PatientRecord._meta.get_all_field_names() if field.startswith('deficiency_')]
10
        PatientRecord.MISES_FIELDS = [field for field in PatientRecord._meta.get_all_field_names() if field.startswith('mises_')]
11

    
12

    
13
default_app_config = 'calebasse.dossiers.DossiersConfig'
(1-1/12)