Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

SummaryProvides row-level versioning of models. Single function call generates a shadow model and adds the following attributes to the base model: '''versions''' - a QuerySet of all versions of the current instance '''revert(revision_num)''' - ... [More] reverts the instance back to the specified version. If revision_num is negative, reverts back that many steps Also provides an undelete() utility that, given a model class and instance id, will undelete an instance based on it's last stored version. OrganizationAll application logic is in init.py. tests.py contains the doctest and dummy models used by it. See the doctest in tests.py for useage examples. Installation:copy/symlink the modelversions folder into your project folder add modelversions to your INSTALLED_APPS in settings.py as usual following a model defininition in models.py call version_model(). Pass in the base model and assign the result to a local variable. re-sync your app to generate the version tables Warning: this code is under active development and is provided without warranty. [Less]

0
 
  0 reviews  |  0 users  |  153 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

Version any object in Django.

0
 
  0 reviews  |  0 users  |  139 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.