Skip to main content

Preview changes without saving the data into db.

Project description

Preview changes without saving data into a db.

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 must define their own .get_absoulte_url method.

Project details


Download files

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

Source Distribution

django-light-draft-0.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page