Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3e153d13
authored
Sep 05, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: save blank org_id as NULL to bypass unique check
closes #249
parent
ac5f3142
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
circle/dashboard/models.py
+5
-0
No files found.
circle/dashboard/models.py
View file @
3e153d13
...
@@ -201,6 +201,11 @@ class Profile(Model):
...
@@ -201,6 +201,11 @@ class Profile(Model):
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
self
.
get_display_name
()
return
self
.
get_display_name
()
def
save
(
self
,
*
args
,
**
kwargs
):
if
self
.
org_id
==
""
:
self
.
org_id
=
None
super
(
Profile
,
self
)
.
save
(
*
args
,
**
kwargs
)
class
Meta
:
class
Meta
:
permissions
=
(
permissions
=
(
(
'use_autocomplete'
,
_
(
'Can use autocomplete.'
)),
(
'use_autocomplete'
,
_
(
'Can use autocomplete.'
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment