diff --git a/auth/jsonfield.py b/auth/jsonfield.py index ed99b57e0160bf7f08a5d184af7613d1546f17bb..808d0312ee66d07a80eb5da241de84915a83136f 100644 --- a/auth/jsonfield.py +++ b/auth/jsonfield.py @@ -43,7 +43,7 @@ class JSONField(models.TextField): try: parsed_value = json.loads(value) except: - import pdb; pdb.set_trace() + raise Exception("not JSON") if self.json_type and parsed_value: parsed_value = self.json_type.fromJSONDict(parsed_value, **self.deserialization_params) diff --git a/reset.sh b/reset.sh index 685d4b6b5522df77bb39ef4d832939fee6e761f7..46de573b7081eb87b8e4ce59cae9a71ddeb65d7d 100755 --- a/reset.sh +++ b/reset.sh @@ -3,4 +3,4 @@ dropdb helios createdb helios python manage.py syncdb python manage.py migrate -echo "from auth.models import User; User.update_or_create(user_type='google',user_id='ben@adida.net',info={})" | python manage.py shell \ No newline at end of file +echo "from auth.models import User; User.objects.create(user_type='google',user_id='ben@adida.net', info={})" | python manage.py shell \ No newline at end of file