Skip to content

Instantly share code, notes, and snippets.

@joshourisman
Created October 15, 2009 15:13
Show Gist options
  • Save joshourisman/211020 to your computer and use it in GitHub Desktop.
Save joshourisman/211020 to your computer and use it in GitHub Desktop.
class ThisAdmin(admin.ModelAdmin):
def get_urls(self):
urls = super(ThisAdmin, self).get_urls()
my_urls = patterns('',
url(r'^all/$',
self.admin_site.admin_view(all_objects),
{'admin': self,},
name='all_initiatives'),
)
return my_urls + urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment