Commit graph

95 commits

Author SHA1 Message Date
Ann Paul
72cdde6864 Change naming to use additional_data 2015-06-01 09:24:13 -07:00
Jan-Jelle Kester
ff09a69c6f Improve documentation 2015-05-31 15:06:06 +02:00
Jan-Jelle Kester
1173d3bc91 Fix issue with possible duplicates in get_for_objects method 2015-05-31 13:52:29 +02:00
Jan-Jelle Kester
3623812ab4 Some work on m2m relationships 2015-05-15 15:14:57 +02:00
Jan-Jelle Kester
3b04d88441 Improve code documentation 2015-05-15 01:25:44 +02:00
Jan-Jelle Kester
ae8461d1fe Merge pull request #22 from jjkester/python3
Support Python 3 as well as Python 2
2015-05-15 00:30:47 +02:00
Jan-Jelle Kester
b4a0144bfa Try to make migrations work for Django 1.7 2015-05-15 00:15:12 +02:00
Jan-Jelle Kester
f54623d3c1 Merge pull request #14 from johnrtipton/master
Compatibility with django-polymorphic
2015-04-29 12:06:37 +02:00
Ann Paul
d4522ad74a Add migration for detailed_object_repr field 2015-04-23 15:03:09 -07:00
Ann Paul
6a7908f2ca Add detailed_object_repr JSONField to logentry model 2015-04-23 15:02:58 -07:00
John R. Tipton
cc2e489f75 - Check for model using isinstance
- Check for model using isinstance and pk using _get_pk_value
2015-02-19 09:03:39 -05:00
Jan-Jelle Kester
e97c601038 First try at making Auditlog work with Python 3
Issue #15
2015-02-16 22:17:22 +01:00
Jan-Jelle Kester
bee1f08f58 Support both int and long types for numeric primary keys
Issue #10
2015-02-16 21:46:35 +01:00
Jan-Jelle Kester
68adb4c0b7 Add initial model migration (for future use)
Issue #18
2015-02-16 21:43:17 +01:00
Jan-Jelle Kester
eb50f0dffd Fix value lookup for nonexistent relations 2015-02-16 17:06:17 +01:00
Jan-Jelle Kester
71ba81928b Merge branch 'master' of https://github.com/jjkester/django-auditlog 2015-02-16 16:34:35 +01:00
Jan-Jelle Kester
978e50fc35 Fix South compatibility for AuditlogHistoryField 2015-02-16 16:34:22 +01:00
John R. Tipton
16a55e1924 - Compatibility with django-polymorphic
Check for _meta attribute instead of __class__, since an integer has an
__class__ attribute.
2015-02-13 09:23:23 -05:00
John R. Tipton
dc9d6739fe - Compatibility with django-polymorphic
django-polymorphic self._get_pk_value returns the class object.  If
this happens, we try adding _id to the pk_field.
2015-02-12 15:54:59 -05:00
Vittorio Zamboni
3a4509b200 Added tests for include_fields and exclude_fields 2014-10-06 11:16:23 +02:00
Vittorio Zamboni
4ae09eb8b4 Changed registry from list to dictionary and use register kwargs to track fields that must be changed or excluded 2014-10-03 15:13:03 +02:00
Jan-Jelle Kester
d778bb3a9e Add South compatibility for AuditlogHistoryField
Untested, suggested solution per issue #7
2014-07-08 15:57:45 +02:00
Jan-Jelle Kester
41d3948606 Progress with tests 2014-03-14 17:15:31 +01:00
Vitor Figueiro
b453a4a9d5 quick fix for AttributeError at admin urls 2014-02-12 21:54:46 +00:00
Vitor Figueiro
ce8deb9415 replaced str with unicode in diff 2014-02-12 12:41:17 +00:00
Vitor Figueiro
c22bd6b61e process_exception returns None 2014-02-07 20:02:03 +00:00
Vitor Figueiro
ecd53b7a07 ensure signal disconnection 2014-02-07 19:59:16 +00:00
Jan-Jelle Kester
a2f4c98fa1 Add some documentation 2013-12-18 17:27:11 +01:00
Jan-Jelle Kester
2bcc022fdf Fix utility methods with dynamic primary key discovery, also some style fixes 2013-12-18 17:24:41 +01:00
Jan-Jelle Kester
1bde6de50a Extra utility methods on LogEntryManager with correct terminology, small style fix 2013-12-18 17:17:38 +01:00
Jan-Jelle Kester
3e3282392d Make the set_actor method from the middleware static. Also, catch only the relevant exception. 2013-12-18 17:16:39 +01:00
Jan-Jelle Kester
f5aed059bf Add changes_dict and changes_str utility methods to LogEntry model 2013-12-11 17:14:07 +01:00
Jan-Jelle Kester
8c541fe416 Remove html_formated_string method on LogEntry model
The method name was incorrectly spelled and the method was not flexible enough. This functionality will be replaced by a more flexible method and/or a template tag.
2013-12-11 16:58:32 +01:00
Jan-Jelle Kester
ec051d11f0 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/auditlog/middleware.py
2013-12-11 16:55:05 +01:00
Francisco Pérez Ferrer
ee22a84020 Log an entry only if there are changes in model on update 2013-12-01 11:44:16 -05:00
Francisco Pérez Ferrer
19291f54d9 some util functions 2013-11-27 23:04:49 -05:00
Francisco Pérez Ferrer
1a0959d8ab make AUTH_USER_MODEL to work with 'app_label.model_name' format 2013-11-27 17:35:34 -05:00
Jan-Jelle Kester
bd61008bd7 Rename 'AuditLog' to 'Auditlog' in class names 2013-11-07 17:02:31 +01:00
Jan-Jelle Kester
1b2503d371 Extend inline documentation 2013-11-06 20:48:16 +01:00
Jan-Jelle Kester
18148f62c1 Add some more inline documentation 2013-10-23 17:23:52 +02:00
Jan-Jelle Kester
b66ada0baa Only set the actor when it was not set explicitly 2013-10-23 17:20:21 +02:00
Jan-Jelle Kester
ecf20dfe33 Small bugfix / improvement to log_update receiver 2013-10-23 17:10:39 +02:00
Jan-Jelle Kester
496c91441b Some major bugfixes 2013-10-21 22:41:11 +02:00
Jan-Jelle Kester
74c962a2a0 Only save a log entry when something changed. 2013-10-21 22:27:35 +02:00
Jan-Jelle Kester
81098cd179 Big commit: testproject, bugfixes, changed directory structure 2013-10-21 21:46:31 +02:00