generated from 2martens/django-template
Added order with respect to
This commit is contained in:
@ -125,12 +125,11 @@ class RecipeStep(models.Model):
|
||||
recipe = models.ForeignKey(Recipe, models.CASCADE)
|
||||
image = models.ImageField(_('Image'), blank=True, null=True)
|
||||
description = models.TextField(_('Description'))
|
||||
number_of_step = models.PositiveIntegerField(_('Number of step'))
|
||||
|
||||
class Meta:
|
||||
unique_together = ['recipe', 'number_of_step']
|
||||
verbose_name = _('Recipe step')
|
||||
verbose_name_plural = _('Recipe steps')
|
||||
order_with_respect_to = 'recipe'
|
||||
|
||||
|
||||
class UsedKitchenUtility(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user