brutasse/django-push — pull request #14 by dferrante (2014-09-09 16:49:43+00:00)
Title: Fix for adding subscriptions through the django admin

the admin.py for subscriber tries to do a url reverse for subscriber_callback, but the primary key doesn't exist for new subscriber objects, so it errors out. these commits just have it return None if the pk doesn't exist. this shouldn't mess up any existing code, and callback_url isn't called for anything significant until after the object is created, so returning None shouldn't have any side effects. all tests pass. if you think this is all good, please merge and push to pypi at your convenience, thanks!