Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
d5de7fee
Commit
d5de7fee
authored
14 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
a few tweaks for resetting
parent
4850e3f3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
auth/jsonfield.py
+1
-1
1 addition, 1 deletion
auth/jsonfield.py
reset.sh
+1
-1
1 addition, 1 deletion
reset.sh
with
2 additions
and
2 deletions
auth/jsonfield.py
+
1
−
1
View file @
d5de7fee
...
@@ -43,7 +43,7 @@ class JSONField(models.TextField):
...
@@ -43,7 +43,7 @@ class JSONField(models.TextField):
try
:
try
:
parsed_value
=
json
.
loads
(
value
)
parsed_value
=
json
.
loads
(
value
)
except
:
except
:
import
pdb
;
pdb
.
set_trace
(
)
raise
Exception
(
"
not JSON
"
)
if
self
.
json_type
and
parsed_value
:
if
self
.
json_type
and
parsed_value
:
parsed_value
=
self
.
json_type
.
fromJSONDict
(
parsed_value
,
**
self
.
deserialization_params
)
parsed_value
=
self
.
json_type
.
fromJSONDict
(
parsed_value
,
**
self
.
deserialization_params
)
...
...
This diff is collapsed.
Click to expand it.
reset.sh
+
1
−
1
View file @
d5de7fee
...
@@ -3,4 +3,4 @@ dropdb helios
...
@@ -3,4 +3,4 @@ dropdb helios
createdb helios
createdb helios
python manage.py syncdb
python manage.py syncdb
python manage.py migrate
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
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
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment