X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/215471e368740a54edf403f53e3441ec2b541062..e6dc550637caaf1099fe8b5f213b7337b9b2f42d:/apps/organizations/models.py

diff --git a/apps/organizations/models.py b/apps/organizations/models.py
index 6b1d918d..8e04ddb7 100644
--- a/apps/organizations/models.py
+++ b/apps/organizations/models.py
@@ -71,7 +71,7 @@ class Card(models.Model):
 
     def get_projects(self):
         for project_line in self.projects.strip().split('\n'):
-            parts = project_line.strip().split(' ', 2)
+            parts = project_line.strip().split(None, 2)
             if not parts or not parts[0]:
                 continue
             url, lang, desc = (parts + [''] * 2)[:3]
@@ -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)