""" Models for application project """

from django.db import models

class Delivery(models.Model):
    """ Main delivery model """
    freighter = models.IntegerField(default=models.NOT_PROVIDED)
    departure = models.CharField(max_length=256)
    arrival = models.CharField(max_length=256)
    deadline = models.DateTimeField(auto_now=True)
    volume = models.FloatField(default=models.NOT_PROVIDED)
    weight = models.FloatField(default=models.NOT_PROVIDED)
    image = models.ImageField(max_length=128)
    title = models.CharField(max_length=128)
    description = models.TextField(default='', blank=True)
    # def __unicode__(self):
    #     pass
    def __str__(self):
        return self.title

class Freighter(models.Model):
    """ Main freighter model """
    name = models.CharField(max_length=256)
    code = models.CharField(max_length=128)
    phone = models.CharField(max_length=64)

""" Models for application project """

from django.db import models

class Delivery(models.Model):
    """ Main delivery model """
    freighter = models.IntegerField(default=models.NOT_PROVIDED)
    departure = models.CharField(max_length=256)
    arrival = models.CharField(max_length=256)
    deadline = models.DateTimeField(auto_now=True)
    volume = models.FloatField(default=models.NOT_PROVIDED)
    weight = models.FloatField(default=models.NOT_PROVIDED)
    image = models.ImageField(max_length=128)
    title = models.CharField(max_length=128)
    description = models.TextField(default='', blank=True)
    # def __unicode__(self):
    #     pass
    def __str__(self):
        return self.title

class Freighter(models.Model):
    """ Main freighter model """
    name = models.CharField(max_length=256)
    code = models.CharField(max_length=128)
    phone = models.CharField(max_length=64)

Models for application project Main delivery model # def __unicode__(self): #     pass Main freighter model