Django Extensions
Project description
Django Ext
Some extensions for Django.
Models
TimestampModel
Add created_at
and updated_at
for model.
TimeRangeModel
Add started_at
and ended_at
for model.
UserTrackModel
Add created_by
and update_by
for model.
This model requires django-currentuser
, and should add it to the middleware classes in your settings.py:
MIDDLEWARE = (
...,
'django_currentuser.middleware.ThreadLocalUserMiddleware',
)
Commands
translate
Translate the permission names into the local language.
$ python manage.py translate
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-ext-0.7.tar.gz
(5.3 kB
view hashes)