Commits

Matthew Schinckel committed 5ac0777

Better url handling.

  • Participants
  • Parent commits 3abfdd5

Comments (0)

Files changed (2)

File sms/models/message.py

     
     @models.permalink
     def get_absolute_url(self):
-        return reverse('messageset-status', self.uuid)
+        return reverse('messageset-status', args=(self.uuid,))
 urlpatterns = patterns('',
     url('^status_postback/$', views.update_delivery_status, name='status_postback'),
     url('^reply_postback/$', views.handle_reply, name='reply_postback'),
-    url('^status/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/$', views.get_message_set_status, name='messageset-status'),
+    url('^status/([0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12})/$', views.get_message_set_status, name='messageset-status'),
 )