daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @models.permalink
  2.     def get_unsubscribe_all_url(self):
  3.         return ('unalert_all', (), {
  4.             'token': self._token(),
  5.             'email': self.email,
  6.         })
  7.  
  8.  
  9. >>> from finder.models import AdAlert as AA
  10. >>> aa = AA()
  11. >>> aa
  12. <AdAlert: AdAlert object>
  13. >>> aa.email = 'robert@lessonpie.com'
  14. >>> aa.get_unsubscribe_all_url()
  15. Traceback (most recent call last):
  16.   File "<console>", line 1, in <module>
  17.   File "/Library/Python/2.7/site-packages/django/db/models/__init__.py", line 35, in inner
  18.     return reverse(bits[0], None, *bits[1:3])
  19.   File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 391, in reverse
  20.     *args, **kwargs)))
  21.   File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 337, in reverse
  22.     "arguments '%s' not found." % (lookup_view_s, args, kwargs))
  23. NoReverseMatch: Reverse for 'unalert_all' with arguments '()' and keyword arguments '{'token': 'bac8680189b9d885da1a23ee4b6cac4b', 'email': 'robert@lessonpie.com'}' not found.
  24. >>>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top