Content Management/Models: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<code><pre>
<code><pre>
from django.db import models
from django.db import models

class Content(models.Model):
class Content(models.Model):
title = models.CharField(max_length=200)
title = models.CharField(max_length=200)

Revision as of 21:38, 19 October 2007

from django.db import models

class Content(models.Model):
	title = models.CharField(max_length=200)
	path = models.CharField(max_length=256)
	date = models.DateTimeField('date added')