Last change
on this file since 9179 was 9006, checked in by dennisw, 14 years ago |
django_gheat - versie van gheat die gebruik maakt van django framework, ondersteunt SQL connecties in tegenstelling tot gheat dat gebruik maakt van sqlite
|
File size:
469 bytes
|
Line | |
---|
1 | """
|
---|
2 | Django Extensions abstract base model classes.
|
---|
3 | """
|
---|
4 |
|
---|
5 | from django.db import models
|
---|
6 | from django_extensions.db.fields import ModificationDateTimeField, CreationDateTimeField
|
---|
7 |
|
---|
8 | class TimeStampedModel(models.Model):
|
---|
9 | """ TimeStampedModel
|
---|
10 | An abstract base class model that provides self-managed "created" and
|
---|
11 | "modified" fields.
|
---|
12 | """
|
---|
13 | created = CreationDateTimeField()
|
---|
14 | modified = ModificationDateTimeField()
|
---|
15 |
|
---|
16 | class Meta:
|
---|
17 | abstract = True
|
---|
Note:
See
TracBrowser
for help on using the repository browser.