it/itf/pages/models.py
2011-12-27 18:35:42 +05:30

13 lines
358 B
Python

from django.db import models
class Page(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(max_length=64)
main_image = models.ImageField(upload_to='upload/images/pages/', blank=True, null=True)
text = models.TextField(blank=True)
def __unicode__(self):
return self.title
# Create your models here.