Metadata-Version: 1.1
Name: django-actions-logger
Version: 0.2.1
Summary: A Django app that keeps a log of user actions or changes in objects
Home-page: https://github.com/shtalinberg/django-actions-logger
Author: Oleksandr Shtalinberg
Author-email: shtalinberg@ukr.net
License: MIT
Description: =====================
        django-actions-logger
        =====================
        .. image:: https://img.shields.io/pypi/dm/django-actions-logger.svg
            :target:  https://pypi.python.org/pypi/django-actions-logger/
        
        .. image:: https://img.shields.io/pypi/v/django-actions-logger.svg
            :target:  https://pypi.python.org/pypi/django-actions-logger/
        
        A Django app that keeps a log of user actions or changes in objects
        You can log arbitrary action with user and optional info that goes with your action.
        
        this code forked from django-auditlog and add my new ideas
        
        Quick start
        -----------
        
        1. Add "actionslog" to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'actionslog',
            ]
        
        
        2. Run `python manage.py migrate` to create models.
        
        
        Usage
        -----
        
        Simple::
        
            status_msg = 'Reset password %s' % ('success' if success else 'error',)
            la_kwargs = {
                'request': request,
                'instance': obj,
                'user': request.user,
                'action_info': {'info': status_msg},
            }
            LogAction.objects.create_log_action(**la_kwargs)
        
        or ::
        
            status_msg = 'Reset password %s' % ('success' if success else 'error',)
            la_kwargs = {
                'request': request,
                'instance': obj,
                'user': request.user,
                'action': LogAction.SUCCESS if success else LogAction.ERROR,
                'changes': status_msg,
            }
            LogAction.objects.create_log_action(**la_kwargs)
        
        
Keywords: django actions log action logger
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Utilities
