from django.db import models
from datetime import datetime

class Contact(models.Model):

    name = models.CharField(max_length=50)
    email = models.EmailField(max_length=100)
    phone = models.CharField(max_length=15, blank=True)
    message = models.TextField()
    date = models.DateTimeField(default=datetime.now)

    def __str__(self):
        return self.name

    class Meta:
        verbose_name_plural = "Emails"
        ordering = ('date',)

0b025f7129ed9d5f4866ba7a26bd0c7b12fd9d42
<mask token>


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


    class Meta:
        verbose_name_plural = 'Emails'
        ordering = 'date',

<mask token>


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

    def __str__(self):
        return self.name


    class Meta:
        verbose_name_plural = 'Emails'
        ordering = 'date',

<mask token>


class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.EmailField(max_length=100)
    phone = models.CharField(max_length=15, blank=True)
    message = models.TextField()
    date = models.DateTimeField(default=datetime.now)

    def __str__(self):
        return self.name


    class Meta:
        verbose_name_plural = 'Emails'
        ordering = 'date',

from django.db import models
from datetime import datetime


class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.EmailField(max_length=100)
    phone = models.CharField(max_length=15, blank=True)
    message = models.TextField()
    date = models.DateTimeField(default=datetime.now)

    def __str__(self):
        return self.name


    class Meta:
        verbose_name_plural = 'Emails'
        ordering = 'date',

from django.db import models
from datetime import datetime

class Contact(models.Model):

    name = models.CharField(max_length=50)
    email = models.EmailField(max_length=100)
    phone = models.CharField(max_length=15, blank=True)
    message = models.TextField()
    date = models.DateTimeField(default=datetime.now)

    def __str__(self):
        return self.name

    class Meta:
        verbose_name_plural = "Emails"
        ordering = ('date',)
