X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/27bed5683e1619659c96f6ca58dd42cf49be4c67..02d8ce2efb84683b087b102087d125d5b3d293ca:/apps/organizations/models.py diff --git a/apps/organizations/models.py b/apps/organizations/models.py index 6a7aa7ac..c236da42 100644 --- 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' - user = models.ForeignKey(User, unique=True, primary_key=True) + user = models.OneToOneField(User, primary_key=True) def __str__(self): return str(self.user) @@ -104,7 +104,7 @@ class Organization(Card): preview_html_template = 'organizations/snippets/organization.html' name = models.CharField(max_length=1024) - tags = models.ManyToManyField('catalogue.Tag') + tags = models.ManyToManyField('catalogue.Tag', blank=True) # logo = models.ImageField(upload_to='people/logo', blank=True) # country = models.CharField(max_length=64, blank=True, choices=countries) # www = models.URLField(blank=True)