Beispiel #1
0
 def last_mapping_update(self):
     if not self.mappings:
         return None
     klass = get_class('mappings.models.MappingVersion')
     mappings = klass.objects.filter(id__in=self.mappings)
     if not mappings.exists():
         return None
     agg = mappings.aggregate(Max('updated_at'))
     return agg.get('updated_at__max')
Beispiel #2
0
 def last_mapping_update(self):
     if not self.mappings:
         return None
     klass = get_class('mappings.models.MappingVersion')
     mappings = klass.objects.filter(id__in=self.mappings)
     if not mappings.exists():
         return None
     agg = mappings.aggregate(Max('updated_at'))
     return agg.get('updated_at__max')
Beispiel #3
0
 def last_concept_update(self):
     if not self.concepts:
         return None
     klass = get_class('concepts.models.ConceptVersion')
     versions = klass.objects.filter(id__in=self.concepts)
     if not versions.exists():
         return None
     agg = versions.aggregate(Max('updated_at'))
     return agg.get('updated_at__max')
Beispiel #4
0
 def last_concept_update(self):
     if not self.concepts:
         return None
     klass = get_class('concepts.models.ConceptVersion')
     versions = klass.objects.filter(id__in=self.concepts)
     if not versions.exists():
         return None
     agg = versions.aggregate(Max('updated_at'))
     return agg.get('updated_at__max')