auditlog with Django and DRF
<p>I need to implement auditlog feature in one of my project which is using <code>Django 1.8</code> and <code>Django-Rest-Framework 3.2.2</code>. I have extended <code>BaseUserManager class</code> to create user model since I had to use email as a username in my application ( if this information matters ).</p>

<p>Below is my db design which will hold logs :</p>

<pre><code>**fields    type    desc**

id           pk      ( auto_increment)  
cust_id   FK  customer 
customer_name   FK  customer
user_id FK  user
user_name   FK  user
module  Varchar(100) sales,order,billing,etc
action  Varchar(10) Create/Update/Delete
previous_value  varchar(500)    
current_value   varchar(500)    
Datetime    Datetime    timestamp of change
</code></pre>

<p>I have tried <a href="https://pypi.python.org/pypi/django-audit-log" rel="nofollow noreferrer">https://pypi.python.org/pypi/django-audit-log</a> but it has 2 issues as per my requirement-</p>

<ol>
<li>It does not capture data as per my requirement which I understand is my issue and so I modified it's code and added my fields into it's model.</li>
<li>It is not capturing module information. Behaviour is random.</li>
</ol>

<p>I am seeking advice to proceed with this feature. Which package would be best suitable for my task.</p>

<p>P.S I have also tried <code>Django-reversion</code> and I have no requirement of data versioning.</p>

<p>Thanks</p>