Skip to content

Commit

Permalink
Merge branch 'release/0.6b1'
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jul 15, 2013
2 parents 77b1f0f + 65691bd commit 76879e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concurrency/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import os

VERSION = __version__ = (0, 6, 0, 'beta', 0)
VERSION = __version__ = (0, 6, 0, 'beta', 1)
__author__ = 'sax'


Expand Down
1 change: 1 addition & 0 deletions concurrency/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class AppSettings(object):
"""
defaults = {
'ENABLED': True,
'SANITY_CHECK': True,
'FIELD_SIGNER': 'concurrency.forms.VersionFieldSigner',
'POLICY': CONCURRENCY_LIST_EDITABLE_POLICY_SILENT | CONCURRENCY_POLICY_RAISE,
Expand Down
2 changes: 2 additions & 0 deletions concurrency/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def _set_version(obj, version):


def _select_lock(model_instance, version_value=None):
if not conf.ENABLED:
return
version_field = model_instance.RevisionMetaInfo.field
value = version_value or getattr(model_instance, version_field.name)
is_versioned = value != version_field.get_default()
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@
# built documents.
#
# The short X.Y version.
version = concurrency.get_version()
version = ".".join(map(str, app.VERSION[0:2]))
# The full version, including alpha/beta/rc tags.
release = concurrency.get_version()
next_version = '0.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 76879e8

Please sign in to comment.