--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('catalogue', '0009_auto_20161130_1346'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='publishrecord',
+ options={'ordering': ['-timestamp'], 'verbose_name': 'book publish record', 'verbose_name_plural': 'book publish records'},
+ ),
+ migrations.AlterField(
+ model_name='document',
+ name='tags',
+ field=models.ManyToManyField(to='catalogue.Tag', blank=True),
+ ),
+ ]
--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+from django.conf import settings
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organizations', '0008_organization_tags'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='organization',
+ name='tags',
+ field=models.ManyToManyField(to='catalogue.Tag', blank=True),
+ ),
+ migrations.AlterField(
+ model_name='usercard',
+ name='user',
+ field=models.OneToOneField(primary_key=True, serialize=False, to=settings.AUTH_USER_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)