1. Antoine Nguyen
  2. cmsplugin-poll

Source

cmsplugin-poll / cmsplugin_poll / models.py

Diff from to

File cmsplugin_poll/models.py

  • Ignore whitespace
     def __repr__(self):
         return unicode(self)
 
+    @models.permalink
+    def get_absolute_url(self):
+        return ('cmsplugin_poll.views.detail', (self.id,))
+
     @property
     def votes(self):
         return self.choice_set.aggregate(models.Sum('votes'))['votes__sum']