Skip to content

Commit

Permalink
Add admin for basic models
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Vetter committed Aug 6, 2013
1 parent 4926bc0 commit ba5894a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions fancypages/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.contrib import admin
from django.db.models import get_model


admin.site.register(get_model('fancypages', 'FancyPage'))
admin.site.register(get_model('fancypages', 'PageType'))
admin.site.register(get_model('fancypages', 'VisibilityType'))
admin.site.register(get_model('fancypages', 'Container'))
admin.site.register(get_model('fancypages', 'OrderedContainer'))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
include_package_data=True,
install_requires=[
'versiontools>=1.9.1,<1.10',
'Django>=1.4.5,<1.5',
'Django>=1.4.5,<1.6',
'django-model-utils>=1.1.0,<1.5',
'djangorestframework>=2.1.12,<2.2',
'South>=0.7.6,<0.9',
Expand Down

0 comments on commit ba5894a

Please sign in to comment.