def user_can_update_object(self, user, obj): # this one is a bit worrying, since anybody could update anonymous logs, but at least only if they have the ID # (and this is needed, in order to allow a ContentSessionLog to be updated within a session -- in theory, # we could add date checking in here to not allow further updating after a couple of days) return lookup_field_with_fks(self.field_name, obj) is None
def user_can_create_object(self, user, obj): return lookup_field_with_fks(self.field_name, obj) is None