mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-15 18:53:21 +00:00
v0.1.1
This commit is contained in:
parent
871e2d1a91
commit
2c7dd89f98
7 changed files with 15 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
BIN
dist/wagtail-modeltranslation-0.1.1.tar.gz
vendored
Normal file
BIN
dist/wagtail-modeltranslation-0.1.1.tar.gz
vendored
Normal file
Binary file not shown.
2
setup.py
2
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
|
@ -1,3 +1 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
# coding: utf-8
|
||||
|
|
|
|||
Loading…
Reference in a new issue