"""menu app model definitions"""

import datetime

from django.db import models


class Menu(models.Model):
    dishes = models.ManyToManyField('Dish', related_name='dishes')
    season = models.CharField(max_length=200)
    created_date = models.DateField(null=True, default=datetime.date.today)
    expiration_date = models.DateField(blank=True, null=True)

    class Meta:
        ordering = ['expiration_date', 'created_date', 'season']

    def __str__(self):
        return self.season


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name='ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

aaf5abc7910e386ddf2907b6b4cc8a4041dec550
<mask token>


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name=
        'ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

<mask token>


class Menu(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        ordering = ['expiration_date', 'created_date', 'season']
    <mask token>


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name=
        'ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

<mask token>


class Menu(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        ordering = ['expiration_date', 'created_date', 'season']

    def __str__(self):
        return self.season


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name=
        'ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

<mask token>


class Menu(models.Model):
    dishes = models.ManyToManyField('Dish', related_name='dishes')
    season = models.CharField(max_length=200)
    created_date = models.DateField(null=True, default=datetime.date.today)
    expiration_date = models.DateField(blank=True, null=True)


    class Meta:
        ordering = ['expiration_date', 'created_date', 'season']

    def __str__(self):
        return self.season


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name=
        'ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name

"""menu app model definitions"""

import datetime

from django.db import models


class Menu(models.Model):
    dishes = models.ManyToManyField('Dish', related_name='dishes')
    season = models.CharField(max_length=200)
    created_date = models.DateField(null=True, default=datetime.date.today)
    expiration_date = models.DateField(blank=True, null=True)

    class Meta:
        ordering = ['expiration_date', 'created_date', 'season']

    def __str__(self):
        return self.season


class Dish(models.Model):
    chef = models.ForeignKey('auth.User', models.CASCADE)
    ingredients = models.ManyToManyField('Ingredient', related_name='ingredients')
    created_date = models.DateField(null=True, default=datetime.date.today)
    name = models.CharField(max_length=200)
    description = models.TextField()
    standard = models.BooleanField(default=False)

    def __str__(self):
        return self.name


class Ingredient(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name
