def unflag(self, user): """ Remove the NIPSA flag for a user. If the user isn't NIPSA'd then nothing will happen (but a "remove_nipsa" message for the user will still be published to the queue). """ user.nipsa = False reindex_user_annotations.delay(user.userid)
def unflag(self, user): """ Remove the NIPSA flag for a user. If the user isn't NIPSA'd then nothing will happen (but a "remove_nipsa" message for the user will still be published to the queue). """ user.nipsa = False reindex_user_annotations.delay(user.userid)
def flag(self, user): """ Add a NIPSA flag for a user. Add the given user's ID to the list of NIPSA'd user IDs. If the user is already NIPSA'd then nothing will happen (but an "add_nipsa" message for the user will still be published to the queue). """ user.nipsa = True reindex_user_annotations.delay(user.userid)
def flag(self, user): """ Add a NIPSA flag for a user. Add the given user's ID to the list of NIPSA'd user IDs. If the user is already NIPSA'd then nothing will happen (but an "add_nipsa" message for the user will still be published to the queue). """ user.nipsa = True reindex_user_annotations.delay(user.userid)