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

 by   jjkester Python Version: v1.0a1 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 high 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 highly active ecosystem.
              It has 336 star(s) with 225 fork(s). There are 28 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 23 open issues and 98 have been closed. On average issues are closed in 387 days. There are 28 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of django-auditlog is v1.0a1

            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's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of django-auditlog
            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
            CLONE
          • HTTPS

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

          • CLI

            gh repo clone jjkester/django-auditlog

          • sshUrl

            git@github.com:jjkester/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