mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-03-16 22:10:31 +00:00
Prepared 0.4 release. Fixed a bug in get_version if version is final along the way.
This commit is contained in:
parent
6cde75c2cc
commit
c44f9cfee5
3 changed files with 14 additions and 5 deletions
|
|
@ -1,3 +1,10 @@
|
|||
v0.4.0
|
||||
======
|
||||
Date: 2012-11-11
|
||||
|
||||
CHANGED: Refactored tests to allow test runs with other apps. Includes a
|
||||
"backport" of override_settings to ensure Django 1.3 support.
|
||||
(thanks to Jacek Tomaszewski)
|
||||
CHANGED: Modeltranslation related css class prefix to 'mt'.
|
||||
|
||||
FIXED: Race condition during initialization.
|
||||
|
|
|
|||
2
PKG-INFO
2
PKG-INFO
|
|
@ -1,6 +1,6 @@
|
|||
Metadata-Version: 1.0
|
||||
Name: django-modeltranslation
|
||||
Version: 0.4.0-beta2
|
||||
Version: 0.4.0
|
||||
Summary: Translates Django models using a registration approach.
|
||||
Home-page: https://github.com/deschler/django-modeltranslation
|
||||
Author: Peter Eschler,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
VERSION = (0, 4, 0, 'beta', 2)
|
||||
VERSION = (0, 4, 0, 'final', 0)
|
||||
|
||||
|
||||
def get_version(version=None, pep386=True, short=False):
|
||||
|
|
@ -11,7 +11,7 @@ def get_version(version=None, pep386=True, short=False):
|
|||
will be used (e.g. 0.4.0-rc1).
|
||||
|
||||
If the ``short`` parameter is ``True``, the release style naming version
|
||||
will omit the patch level and sub (e.g. 0.4). The is for example used for
|
||||
will omit the patch level and sub (e.g. 0.4). This is for example used for
|
||||
sphinx.
|
||||
"""
|
||||
if version is None:
|
||||
|
|
@ -35,8 +35,10 @@ def get_version(version=None, pep386=True, short=False):
|
|||
|
||||
if short:
|
||||
return '%d.%d'.format(version[0], version[1])
|
||||
return '%d.%d.%d-%s%d' % (
|
||||
version[0], version[1], version[2], version[3], version[4])
|
||||
if version[3] != 'final':
|
||||
return '%d.%d.%d-%s%d' % (
|
||||
version[0], version[1], version[2], version[3], version[4])
|
||||
return '%d.%d.%d' % (version[0], version[1], version[2])
|
||||
|
||||
|
||||
__version__ = get_version()
|
||||
|
|
|
|||
Loading…
Reference in a new issue