Project

General

Profile

« Previous | Next » 

Revision 6c1bf4ad

Added by Jérôme Schneider over 11 years ago

personnes: manage external therapists and workers

View differences:

calebasse/ressources/views.py
16 16
        _models = models.get_models()
17 17
    for model in _models:
18 18
        meta = model._meta
19
        if meta.module_name == model_name and meta.app_label == 'ressources':
19
        if meta.module_name == model_name and \
20
                (meta.app_label == 'ressources' or meta.app_label == 'personnes'):
20 21
            return model
21 22
    return None
22 23

  
23 24

  
24 25
def homepage(request, service):
25 26
    global _models
26
    print 'repr:', repr(service)
27 27
    if _models is None:
28 28
        _models = models.get_models()
29 29
    ressources_models = [

Also available in: Unified diff