Giter VIP home page Giter VIP logo

djangocms-version-locking's Introduction

django CMS Version Locking

Explanation

The version-locking addon is intended to modify the way djangocms-versioning works in the following way:

  • The primary change is that it locks a version to its author when a draft is created.
  • The lock prevents editing of the file by anyone other than the author.
  • That version becomes automatically unlocked again once it is published.
  • Locks can be removed by a user with the correct permission
  • Unlocking an item sends a notification to the author to which it was locked.
  • Manually unlocking a version does not lock it to the unlocking user, nor does it change the author.
  • The Version admin view for each content-type registered with Version-locking will be edited to add in lock icons / buttons UI to the Actions column.

Installation

The package djangocms-versioning and djangocms-moderation need to be installed for this project to function correctly.

Configuration

Version-locking makes use of the django-cms 4.x App Registration mechanism to allow models from other addon's (i.e. content-types) to be registered for use with version-locking. See the cms_config.py file for an example of how. In this file the PageContent model is configured for version-locking.

djangocms-version-locking's People

Contributors

adam-murray avatar aiky30 avatar bernardvdv avatar chaosk avatar freemanpancake avatar geoidesic avatar jonathan-s avatar joshyu avatar malindap92 avatar vxsx avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

djangocms-version-locking's Issues

New dependency on moderation in 1.2.0

As of 1.2.0, there is a dependency on djangocms-moderation introduced here;
753eb80

Given that each v4 package is intended to be optional, I'd expect this to be wrapped in a try/except to allow projects not using moderation to still use version locking - like one of mine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.