Changeset aa6a940 for asadb/settings.py


Ignore:
Timestamp:
Aug 13, 2011, 9:53:10 PM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
0bd161f
Parents:
9bf5237
git-author:
Alex Dehnert <adehnert@…> (08/13/11 21:53:10)
git-committer:
Alex Dehnert <adehnert@…> (08/13/11 21:53:10)
Message:

Fix updater information

Systems updating entries should call set_updater with the updater (as a string
or request.user object) in order to ensure that the updater is correct.
Otherwise, it will be unset on instance.save(). Regardless, the update_time
will be updated.

This mechanism is independent of django-reversion's history functionality,
which also stores the updater.

Note, in particular, that the admin does not currently use this interface
to store the updater, but does store it in django-reversion's system (along
with the rest of the history). Porting the "view group" page over may be
desirable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/settings.py

    r16b7515 raa6a940  
    3939# to load the internationalization machinery.
    4040USE_I18N = True
     41
     42DATETIME_FORMAT_PYTHON = "%c"
    4143
    4244from local_settings import *
Note: See TracChangeset for help on using the changeset viewer.