django-auditlog | A Django app that keeps a log of changes made to an object

 by   jazzband Python Version: 3.0b4 License: MIT

kandi X-RAY | django-auditlog Summary

kandi X-RAY | django-auditlog Summary

django-auditlog is a Python library typically used in Logging applications. django-auditlog has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install django-auditlog' or download it from GitHub, PyPI.

A Django app that keeps a log of changes made to an object.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              django-auditlog has a medium active ecosystem.
              It has 790 star(s) with 376 fork(s). There are 24 watchers for this library.
              There were 3 major release(s) in the last 6 months.
              There are 46 open issues and 180 have been closed. On average issues are closed in 148 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of django-auditlog is 3.0b4

            kandi-Quality Quality

              django-auditlog has 0 bugs and 0 code smells.

            kandi-Security Security

              django-auditlog has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              django-auditlog code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              django-auditlog is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              django-auditlog releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              django-auditlog saves you 561 person hours of effort in developing the same functionality from scratch.
              It has 1312 lines of code, 92 functions and 32 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed django-auditlog and discovered the below as its top functions. This is intended to give you an instant insight into django-auditlog implemented functionality, and help decide if they suit your requirements.
            • Register a model
            • Creates log_m2m_changes
            • Connect signals to auditlog
            • Create a new log entry
            • Returns serialized data or None
            • Creates a deep copy of the given instance
            • Return the pk value of the primary key
            • Mask fields in a dict
            • Return a list of model fields to include
            • Convert a value into a string
            • Log M2M changes
            • Log an update
            • Returns the difference between two model instances
            • Get the value of the given field
            • Returns whether the given field is tracking
            • Return a list of fields in the model
            • Returns a queryset of objects for the given model instance
            • Create a log entry
            • Log a delete event
            Get all kandi verified functions for this library.

            django-auditlog Key Features

            No Key Features are available at this moment for django-auditlog.

            django-auditlog Examples and Code Snippets

            No Code Snippets are available at this moment for django-auditlog.

            Community Discussions

            QUESTION

            Using django-auditlog, how can I display the 'actor_id' for a particular model?
            Asked 2022-Mar-25 at 19:20

            I have created a simple Django application to display individual articles. These articles have a number of fields that users can edit. I am using the package 'django-auditlog' to log changes to these article models. So far, I have simply followed the auditlog installation doc to setup model history tracking (as well as enabling the middleware to allow 'actor_id' to be tracked). I have also added the example code that displays the most recent changes on the individual model pages as such:

            ...

            ANSWER

            Answered 2022-Mar-25 at 19:20

            I figured out the answer after looking through the models file for Django AuditLog. It is not possible to pull the actor out directly from the history field of the model if you have created the history field using the AuditlogHistoryField() method as described in the django-auditlog tutorial.

            Instead, I did the following:

            In the views.py file

            Source https://stackoverflow.com/questions/71229312

            QUESTION

            What happens after Django clean method but before commit?
            Asked 2020-Sep-02 at 22:56

            I am using an awesome library called Django Auditlog. It tracks what changes occurred to an object. For model Book if I changed the Author name from 'John' to 'Mary' it records the before value (John), after value (Mary), when it occurred, and what user made the change.

            It's working except that it is detecting changes that aren't changes for some of my decimal fields. It thinks a change occurs anytime I save this model: it thinks that I started with .00 and changed it to .0. But .00 is the existing value and I didn't change anything. I just saved() the record.

            I checked the output of the form itself in the clean() method:

            ...

            ANSWER

            Answered 2020-Sep-02 at 22:56

            If you look up into source you would see that it compares these two values not as field values but through use of smart_text values are converted to string inside get_field_value

            So it basically compares "44.00" and your value of "44.0" and this is different string so it is triggered as change

            Not sure if this is by design as in my eyes would be considered bug, and you could fork and fix it yourself

            Source https://stackoverflow.com/questions/63713985

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install django-auditlog

            You can install using 'pip install django-auditlog' or download it from GitHub, PyPI.
            You can use django-auditlog like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install django-auditlog

          • CLONE
          • HTTPS

            https://github.com/jazzband/django-auditlog.git

          • CLI

            gh repo clone jazzband/django-auditlog

          • sshUrl

            git@github.com:jazzband/django-auditlog.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link