Dimitris Glezos  committed 85052f3

Moved m2m in Releases instead of Components.

It's better to think of a pizza with toppings instead of a topping
being put on pizzas.

  • Participants
  • Parent commits 2ed679b

Comments (0)

Files changed (1)

File transifex/projects/

     project = models.ForeignKey(Project, verbose_name=_('Project'))
     _unit = models.OneToOneField(Unit, verbose_name=_('Unit'),
         blank=True, null=True, editable=False, db_column='unit_id')
-    releases = models.ManyToManyField('Release',
-        verbose_name=_('Releases'), related_name='components',
-        blank=True, null=True)
     pofiles = generic.GenericRelation(POFile)
     # Managers
     # Relations
     project = models.ForeignKey(Project, verbose_name=_('Project'), related_name='releases')
+    components = models.ManyToManyField(Component, verbose_name=_('Components'),
+        related_name='components_shipped', blank=False, null=True)
     def __unicode__(self):