示例#1
0
class PointOfInterestListKeyConstructor(DefaultKeyConstructor):
    list_sql = bits.ListSqlQueryKeyBit()
    updated_at = UpdatedAtKeyBit()
示例#2
0
 def post_delete(self, *args, **kwargs):
     UpdatedAtKeyBit.update(self)
示例#3
0
class NodeListKeyConstructor(DefaultKeyConstructor):
    list_sql = bits.ListSqlQueryKeyBit()
    updated_at = UpdatedAtKeyBit()
示例#4
0
 def post_save(self, *args, **kwargs):
     for e in Edge.objects.filter(Q(source=self) | Q(destination=self)):
         e.save()
     UpdatedAtKeyBit.update(self)