website/src/home/models.py

17 lines
502 B
Python
Raw Normal View History

2021-07-10 11:18:24 +02:00
from django.db import models
class new(models.Model):
name = models.CharField(max_length=100)
2021-09-07 21:13:30 +02:00
content = models.TextField(blank=True)
content_en = models.TextField(blank=True)
content_ru = models.TextField(blank=True)
content_de = models.TextField(blank=True)
2021-07-10 11:18:24 +02:00
slug = models.SlugField(max_length=55)
pub_date = models.DateTimeField('Date published')
def __str__(self):
return self.name
# Create your models here.