Permalink
Browse files

add a url() for /ajax/{app}/{model}/[pk](optional)/{method} for adhoc…

… methods on a ModelEndpoint
  • Loading branch information...
1 parent 15a5369 commit df162c4d5927a7f33c8d197802534db77fb0f658 @toast38coza committed Feb 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ajax/urls.py
View
1 ajax/urls.py
@@ -6,6 +6,7 @@
urlpatterns = patterns('ajax.views',
(r'^(?P<application>\w+)/(?P<model>\w+).json', 'endpoint_loader'),
+ (r'^(?P<application>\w+)/(?P<model>\w+)/(?P<method>\w+).json', 'endpoint_loader'),
(r'^(?P<application>\w+)/(?P<model>\w+)/(?P<pk>\d+)/(?P<method>(update|delete|get|tags))/?(?P<taggit_command>(add|remove|set|clear|similar))?.json$', 'endpoint_loader'),
(r'^js/(?P<path>.*)$', serve,
{'document_root': JAVASCRIPT_PATH}),

0 comments on commit df162c4

Please sign in to comment.