tildetown-admin/ttadmin/guestbook/models.py

8 lines
283 B
Python
Raw Permalink Normal View History

2016-12-20 06:00:00 +00:00
from django.db.models import Model, TextField, CharField, DateTimeField
class GuestbookMessage(Model):
name = CharField(blank=False, null=False, max_length=50)
msg = TextField(blank=False, null=False, max_length=500)
datetime_created = DateTimeField(auto_now_add=True)