Changes between Version 15 and Version 16 of AuditTrail
- Timestamp:
- Dec 5, 2008, 4:24:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AuditTrail
v15 v16 129 129 130 130 {{{ 131 #!python132 131 from django.dispatch import dispatcher 133 132 from django.db import models … … 289 288 # is created and multiple audit entries for one item fail. 290 289 attrs[field.name]._unique = False 290 # If a model has primary_key = True, a second primary key would be 291 # created in the audit model. Set primary_key to false. 292 attrs[field.name].primary_key = False 291 293 292 294 for track_field in _track_fields(kwargs['track_fields']):