Exemplo n.º 1
0
 def action(self, topic):
     if not perms.may_unstick_topic(self.request.user, topic):
         raise PermissionDenied
     topic.sticky = False
     topic.save()
Exemplo n.º 2
0
 def action(self, topic):
     if not perms.may_unstick_topic(self.request.user, topic):
         raise PermissionDenied
     topic.sticky = False
     topic.save()