diff --git a/taiga/projects/userstories/migrations/0002_auto_20140903_1301.py b/taiga/projects/userstories/migrations/0002_auto_20140903_1301.py new file mode 100644 index 00000000..227f6b04 --- /dev/null +++ b/taiga/projects/userstories/migrations/0002_auto_20140903_1301.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('userstories', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='rolepoints', + name='points', + field=models.ForeignKey(related_name='role_points', to='projects.Points', null=True, verbose_name='points'), + ), + ] diff --git a/taiga/projects/userstories/models.py b/taiga/projects/userstories/models.py index 8c1b3020..5317a3a1 100644 --- a/taiga/projects/userstories/models.py +++ b/taiga/projects/userstories/models.py @@ -36,7 +36,7 @@ class RolePoints(models.Model): role = models.ForeignKey("users.Role", null=False, blank=False, related_name="role_points", verbose_name=_("role")) - points = models.ForeignKey("projects.Points", null=False, blank=False, + points = models.ForeignKey("projects.Points", null=True, blank=False, related_name="role_points", verbose_name=_("points")) @@ -54,7 +54,6 @@ class RolePoints(models.Model): class UserStory(OCCModelMixin, WatchedModelMixin, BlockedMixin, TaggedMixin, models.Model): - ref = models.BigIntegerField(db_index=True, null=True, blank=True, default=None, verbose_name=_("ref")) milestone = models.ForeignKey("milestones.Milestone", null=True, blank=True,