Skip to content

Commit

Permalink
Put API Access admin back in
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Mar 23, 2013
1 parent e47228c commit 5908126
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boundaryservice/admin.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from django.contrib import admin
from tastypie.models import ApiAccess
from django.contrib.gis.admin import OSMGeoAdmin
from boundaryservice.models import BoundarySet, Boundary


class ApiAccessAdmin(admin.ModelAdmin):
pass

admin.site.register(ApiAccess, ApiAccessAdmin)


class BoundarySetAdmin(admin.ModelAdmin):
list_filter = ('authority', 'domain')

Expand Down

1 comment on commit 5908126

@eyeseast
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking with the latest stable (pypi) version of tastypie. It raises AlreadyRegistered: The model ApiKey is already registered. Happens regardless of ordering in INSTALLED_APPS, the second one just triggers the error.

Please sign in to comment.