Changes between Version 11 and Version 12 of AuditTrail


Ignore:
Timestamp:
08/02/2008 08:09:03 PM (7 years ago)
Author:
Gulopine
Comment:

Updated to r7790

Legend:

Unmodified
Added
Removed
Modified
  • AuditTrail

    v11 v12  
    11= Automating an audit trail =
    22
    3 As raised in [http://groups.google.com/group/django-developers/browse_thread/thread/ab7649e4abd4e589 a recent discussion on django-developers], this code is one solution for creating an audit trail for a given model. '''This is working in multiple production sites, but is still incomplete.  See [#Caveats Caveats] below for more information.''' The code below requires an SVN checkout as of r6269 or later.
     3As raised in [http://groups.google.com/group/django-developers/browse_thread/thread/ab7649e4abd4e589 a recent discussion on django-developers], this code is one solution for creating an audit trail for a given model. '''This is working in multiple production sites, but is still incomplete.  See [#Caveats Caveats] below for more information.''' The code below requires an SVN checkout as of r7790 or later.
    44
    55== Usage ==
     
    277277            # If 'unique' is in there, we need to remove it, otherwise the index
    278278            # is created and multiple audit entries for one item fail.
    279             attrs[field.name].unique = False
     279            attrs[field.name]._unique = False
    280280
    281281    for track_field in _track_fields(kwargs['track_fields']):
Back to Top