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