You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. from django.db import models
  2. # Create your models here.
  3. # class Document(models.Model):
  4. # docfile = models.FileField(upload_to='documents/%Y/%m/%d')
  5. class Post(models.Model):
  6. title = models.TextField()
  7. cover = models.ImageField(upload_to='images/')
  8. def __str__(self):
  9. return self.title