This field was unused and has been for a long time (pre-0.9.0).
Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
class Meta:
model = UserProfile
- fields = ['primary_project', 'items_per_page']
+ fields = ['items_per_page']
class OptionalDelegateField(DelegateField):
--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('patchwork', '0013_slug_check_context'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='userprofile',
+ name='primary_project',
+ ),
+ ]
# projects
- primary_project = models.ForeignKey(Project, null=True, blank=True)
maintainer_projects = models.ManyToManyField(
Project, related_name='maintainer_project', blank=True)
# TODO(stephenfin): Add a related_name for User->Bundle
context = {
- 'project': request.user.profile.primary_project,
'bundles': Bundle.objects.filter(owner=request.user),
'profileform': form,
}