Ejemplo n.º 1
0
 def get_types(self, obj):
     return [{
         'id':
         obj.id * 100 + i,
         'label':
         get_translation_or_dict('type{}_label'.format(i), self, obj),
         'values': [{
             'id':
             t.id,
             'label':
             get_translation_or_dict('label', self, t),
             'pictogram':
             t.pictogram.url if t.pictogram else None,
         } for t in obj.types.filter(in_list=i)]
     } for i in (1, 2)]
Ejemplo n.º 2
0
 def get_published(self, obj):
     return get_translation_or_dict('published', self, obj)
Ejemplo n.º 3
0
 def get_arrival(self, obj):
     return get_translation_or_dict('arrival', self, obj)
Ejemplo n.º 4
0
 def get_practical_info(self, obj):
     return get_translation_or_dict('practical_info', self, obj)
Ejemplo n.º 5
0
 def get_description(self, obj):
     return get_translation_or_dict('description', self, obj)
Ejemplo n.º 6
0
 def get_published(self, obj):
     return get_translation_or_dict('published', self, obj)
Ejemplo n.º 7
0
 def get_departure(self, obj):
     return get_translation_or_dict('departure', self, obj)
Ejemplo n.º 8
0
 def get_label(self, obj):
     return get_translation_or_dict('network', self, obj)
Ejemplo n.º 9
0
 def get_title(self, obj):
     return get_translation_or_dict('title', self, obj)
Ejemplo n.º 10
0
 def get_route(self, obj):
     return get_translation_or_dict('route', self, obj)
Ejemplo n.º 11
0
 def get_content(self, obj):
     return get_translation_or_dict('content', self, obj)
Ejemplo n.º 12
0
 def get_disabled_infrastructure(self, obj):
     return get_translation_or_dict('disabled_infrastructure', self,
                                    obj)
Ejemplo n.º 13
0
 def get_ambiance(self, obj):
     return get_translation_or_dict('ambiance', self, obj)
Ejemplo n.º 14
0
 def get_access(self, obj):
     return get_translation_or_dict('access', self, obj)
Ejemplo n.º 15
0
 def get_description(self, obj):
     return get_translation_or_dict('description', self, obj)
Ejemplo n.º 16
0
 def get_name(self, obj):
     return get_translation_or_dict('name', self, obj)
Ejemplo n.º 17
0
 def get_advice(self, obj):
     return get_translation_or_dict('advice', self, obj)
Ejemplo n.º 18
0
 def get_label(self, obj):
     return get_translation_or_dict('difficulty', self, obj)
Ejemplo n.º 19
0
 def get_advised_parking(self, obj):
     return get_translation_or_dict('advised_parking', self, obj)
Ejemplo n.º 20
0
 def get_arrival(self, obj):
     return get_translation_or_dict('arrival', self, obj)
Ejemplo n.º 21
0
 def get_public_transport(self, obj):
     return get_translation_or_dict('public_transport', self, obj)
Ejemplo n.º 22
0
 def get_name(self, obj):
     return get_translation_or_dict('name', self, obj)
Ejemplo n.º 23
0
 def get_label(self, obj):
     return get_translation_or_dict('difficulty', self, obj)
Ejemplo n.º 24
0
 def get_label(self, obj):
     return get_translation_or_dict('network', self, obj)
Ejemplo n.º 25
0
 def get_departure(self, obj):
     return get_translation_or_dict('departure', self, obj)