Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def approve(self):
- """ Approves this comment to be shown in the website """
- self.active = True
- return self.save(update_fields = ['active'])
- def reject(self):
- """ Disproves this comment """
- self.active = False
- return self.save(update_fields = ['active'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement