Metadata-Version: 1.1
Name: django-light-draft
Version: 0.5.0
Summary: Preview changes without saving the data into db.
Home-page: https://github.com/zerc/django-light-draft
Author: Vladimir Savin
Author-email: zero13cool@yandex.ru
License: MIT
Description-Content-Type: UNKNOWN
Description: django-light-draft
        ==================
        
        .. image:: https://travis-ci.org/zerc/django-light-draft.svg?branch=master
            :target: https://travis-ci.org/zerc/django-light-draft
        .. image:: https://codecov.io/gh/zerc/django-light-draft/branch/master/graph/badge.svg
          :target: https://codecov.io/gh/zerc/django-light-draft
          
        
        Preview model changes without saving the data into the database.
        
        Install
        -------
        
        Usual way:
        
        ::
        
            pip install django-light-draft
        
        
        Edit your settings.py:
        
        .. code:: python
        
            INSTALLED_APPS = (
                ...
        
                'light_draft',
        
            )
        
        
        Then you just need to inherit admin and detail views like this:
        
        admin.py:
        
        .. code:: python
        
            from light_draft.admin import DraftAdmin
        
            class MyModelAdmin(DraftAdmin):
                ...
        
        views.py
        
        .. code:: python
        
            from light_draft.views import BaseDraftView
        
            class MyModelDetailView(BaseDraftView):
                ...
        
        
        See **example/blog** app for more details.
        
        
        NOTES
        -----
        
        1. Your models have to define their own  **.get_absoulte_url** method.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 2.0
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
