This commit is contained in:
Rui Manuel da Silva Martins 2015-05-25 16:04:35 +01:00
parent 871e2d1a91
commit 2c7dd89f98
7 changed files with 15 additions and 7 deletions

View file

@ -48,6 +48,10 @@ Simple app containing a mixin model that integrates modeltranslation
## Release Notes
## v0.1.1
- Fixed url_path issue caused by a browser with language different from settings.LANGUAGE_CODE
## v0.1
- Minor release working but lacks full test coverage.

Binary file not shown.

View file

@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='wagtail-modeltranslation',
version='0.1',
version='0.1.1',
packages=['wagtail_modeltranslation'],
include_package_data=True,
license='BSD License',

View file

@ -1,12 +1,13 @@
Metadata-Version: 1.1
Name: wagtail-modeltranslation
Version: 0.1
Version: 0.1.1
Summary: Integration of django-modeltranslation with Wagtail CMS
Home-page: https://github.com/infoportugal/wagtail-modeltranslation
Author: Rui Martins
Author-email: rmartins16@gmail.com
License: BSD License
Description: # Wagtail modeltranslation
(based on https://github.com/deschler/django-modeltranslation)
Simple app containing a mixin model that integrates modeltranslation
(https://github.com/deschler/django-modeltranslation) into wagtail panels system.
@ -55,9 +56,13 @@ Description: # Wagtail modeltranslation
## Release Notes
## v0.1.1
- Fixed url_path issue caused by a browser with language different from settings.LANGUAGE_CODE
## v0.1
- Minor release working. Lacks of full test coverage.
- Minor release working but lacks full test coverage.
- Last version had required fields validation problems, now fixed.
## v0.0.9

View file

@ -238,7 +238,8 @@ class TranslationMixin(object):
if not tr_slug:
tr_slug = getattr(self, 'slug_'+settings.LANGUAGE_CODE)
setattr(self, 'url_path_'+lang[0], parent.url_path + tr_slug + '/')
parent_url_path = getattr(parent, 'url_path_'+lang[0])
setattr(self, 'url_path_'+lang[0], parent_url_path + tr_slug + '/')
else:
# a page without a parent is the tree root,
# which always has a url_path of '/'

Binary file not shown.

View file

@ -1,3 +1 @@
from django.test import TestCase
# Create your tests here.
# coding: utf-8