Permalink
Browse files

Remove allow_syncdb from database router.

  • Loading branch information...
1 parent 1d3574a commit 5fe9f4520057a8d6a5d715ee126f28f4eb38f3c0 John Hensley committed Oct 19, 2011
Showing with 1 addition and 12 deletions.
  1. +1 −1 peavy/__init__.py
  2. +0 −11 peavy/routers.py
View
@@ -1,7 +1,7 @@
"""
django-peavy makes it easy to collect and monitor Django application logging.
"""
-VERSION = (0, 7, 0)
+VERSION = (0, 7, 1)
def get_version():
return '.'.join((str(d) for d in VERSION))
View
@@ -47,14 +47,3 @@ def allow_relation(self, obj1, obj2, **hints):
allow = True
return allow
- def allow_syncdb(self, db, model):
- from django.conf import settings
- db_name = getattr(settings, 'PEAVY_DATABASE_NAME', 'peavy')
-
- allow = None
- if db == db_name:
- allow = model._meta.app_label == 'peavy'
- elif model._meta.app_label == 'peavy':
- allow = False
- return allow
-

0 comments on commit 5fe9f45

Please sign in to comment.