mirror of
https://github.com/django/django.git
synced 2024-12-26 11:06:07 +00:00
866c229f52
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
12 lines
311 B
Python
12 lines
311 B
Python
from django.db import models
|
|
|
|
class Event(models.Model):
|
|
dt = models.DateTimeField()
|
|
|
|
class MaybeEvent(models.Model):
|
|
dt = models.DateTimeField(blank=True, null=True)
|
|
|
|
class Timestamp(models.Model):
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
updated = models.DateTimeField(auto_now=True)
|