This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2011-09-25 01:32:02 +02:00

10 lines
326 B
Python

from django.db import models
class Entry(models.Model):
user = models.CharField(max_length=256)
text = models.CharField(max_length=256)
created = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.text + " (" + self.user + ", " + self.created.strftime("%Y-%m-%d %H:%M") + ")"