def __unicode__(self): return u'%s' % (self.name)
- @staticmethod
- def select_by_user(user):
- return Flavor.objects.all()
-
""" FlavorParameterType and FlavorParameter are below for completeness sake,
waiting for the day we might want to add parameters to flavors.
parameter = models.ForeignKey(FlavorParameterType, related_name="parameters", help_text="The type of the parameter")
value = models.CharField(help_text="The value of this parameter", max_length=1024)
- flavor = models.ForeignKey(Flavor)
+ flavor = models.ForeignKey(Flavor,related_name='flavorparameter')
def __unicode__(self):
return self.parameter.name