fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't notify when editing existing organizations
[redakcja.git]
/
apps
/
organizations
/
models.py
diff --git
a/apps/organizations/models.py
b/apps/organizations/models.py
index
6b1d918
..
c236da4
100644
(file)
--- a/
apps/organizations/models.py
+++ b/
apps/organizations/models.py
@@
-90,7
+90,7
@@
class Card(models.Model):
@python_2_unicode_compatible
class UserCard(Card):
preview_html_template = 'organizations/snippets/user.html'
@python_2_unicode_compatible
class UserCard(Card):
preview_html_template = 'organizations/snippets/user.html'
- user = models.
ForeignKey(User, unique=True
, primary_key=True)
+ user = models.
OneToOneField(User
, primary_key=True)
def __str__(self):
return str(self.user)
def __str__(self):
return str(self.user)