from django.db import models
# make migration - creat changes and store in a file
# migrate - apply the pending changes created by make migrations
# Create your models here.

class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phone = models.CharField(max_length=12)
    message = models.TextField()
    date = models.DateField()


    def __str__(self):
        return self.name
    
fa2e889d7dd2f379de10b1bd08301d0d7bd9e170
<mask token>


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

<mask token>


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

    def __str__(self):
        return self.name

<mask token>


class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phone = models.CharField(max_length=12)
    message = models.TextField()
    date = models.DateField()

    def __str__(self):
        return self.name

from django.db import models


class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phone = models.CharField(max_length=12)
    message = models.TextField()
    date = models.DateField()

    def __str__(self):
        return self.name

from django.db import models
# make migration - creat changes and store in a file
# migrate - apply the pending changes created by make migrations
# Create your models here.

class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phone = models.CharField(max_length=12)
    message = models.TextField()
    date = models.DateField()


    def __str__(self):
        return self.name
    