Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

issue 4 fixing syncdb bug

  • Loading branch information...
commit d954c798a58f62d429adb967a3b860ab178814bf 1 parent ee5416c
@jaredly jaredly authored Jared Forsyth committed
Showing with 5 additions and 0 deletions.
  1. +3 −0  appsettings/models.py
  2. +2 −0  appsettings/settingsobj.py
View
3  appsettings/models.py
@@ -18,3 +18,6 @@ def __setattr__(self, name, value):
return
super(Setting, self).__setattr__(name, value)
+ class Meta:
+ db_table = 'appsettings_setting'
+
View
2  appsettings/settingsobj.py
@@ -1,7 +1,9 @@
try:
from django import db
from django.db.backends.dummy import base
+ from models import Setting
has_db = not isinstance(db.connection, base.DatabaseWrapper)
+ numsettings = Setting.objects.all().count()
except:
has_db = False
Please sign in to comment.
Something went wrong with that request. Please try again.