Changes between Version 14 and Version 15 of AuditTrail


Ignore:
Timestamp:
Aug 24, 2008, 4:43:21 PM (16 years ago)
Author:
larrik
Comment:

Looks like I missed the kwargs thing last time. I'm not running into this not working for multiple ForeignKeys to the same model. It doesn't support related_name. I added this to the Caveats section. I'd like for a real django developer to look at this at some point, because I'm far too new at this right now.

Legend:

Unmodified
Added
Removed
Modified
  • AuditTrail

    v14 v15  
    120120It fails completely on `ManyToManyField`s, something I've yet to remedy. That's definitely a must-have, but I haven't worked out the best way to go about it. And since this whole things isn't something I'm particularly interested in, I'm probably going to leave that up to somebody else to work out.
    121121
     122Likewise, it fails when there are multiple ForeignKeys pointing to the same Model, as it doesn't support / compensate for related_name.
     123
    122124It currently copies and overrides the model's `__str__` method, so that it can helpfully describe each entry in the audit history. This means, however, that if your `__str__` method relies on any ''other'' methods (such as `get_full_name` or similar), it won't work and will need to be adjusted.
    123125
Back to Top