Beispiel #1
0
 def max_revision(cls):
     """Returns the max revision number across all units."""
     return max_column(cls.objects.all(), 'revision', 0)
Beispiel #2
0
 def get_max_unit_revision(self):
     return max_column(self.unit_set.all(), 'revision', 0)
Beispiel #3
0
    def max_index(self):
        """Largest unit index"""

        return max_column(self.unit_set.all(), 'index', -1)
Beispiel #4
0
 def max_revision(cls):
     """Returns the max revision number across all units."""
     return max_column(cls.objects.all(), 'revision', 0)
Beispiel #5
0
 def get_max_unit_revision(self):
     return max_column(self.unit_set.all(), 'revision', 0)
Beispiel #6
0
 def max_index(self):
     """Largest unit index"""
     return max_column(self.unit_set.all(), 'index', -1)