init
This commit is contained in:
commit
8851786e67
353 changed files with 36724 additions and 0 deletions
11
mainapp/models.py
Executable file
11
mainapp/models.py
Executable file
|
@ -0,0 +1,11 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Comments(models.Model):
|
||||
name = models.CharField("Имя", max_length=50)
|
||||
mail = models.CharField("Почта", max_length=100)
|
||||
phone_num = models.CharField("Номер", max_length=15)
|
||||
coment = models.TextField("Сообщение")
|
||||
date_time = models.CharField("Время", max_length=50)
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
Loading…
Add table
Add a link
Reference in a new issue