Skip to main content
Help us improve Python packaging – donate today!

Preview changes without saving the data into db.

Project Description

https://travis-ci.org/zerc/django-light-draft.svg?branch=master

Preview model changes without saving the data into the database.

Install

Usual way:

pip install django-light-draft

Edit your settings.py:

INSTALLED_APPS = (
    ...

    'light_draft',

)

Then you just need to inherit admin and detail views like this:

admin.py:

from light_draft.admin import DraftAdmin

class MyModelAdmin(DraftAdmin):
    ...

views.py

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.

Release history Release notifications

This version
History Node

0.5.0

History Node

0.4.0

History Node

0.2a

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-light-draft-0.5.0.tar.gz (6.2 kB) Copy SHA256 hash SHA256 Source None Apr 7, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page