Skip to content

Commit

Permalink
Bump version, stop translating slugs and url_path, implementation was…
Browse files Browse the repository at this point in the history
… very broken (or incomplete) and supposing no one will suffer - I hope - otherwise apologies
  • Loading branch information
benjaoming committed Dec 17, 2017
1 parent 49c96b4 commit 20878aa
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 75 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
History
-------

0.2.0 (2017-12-17)
++++++++++++++++++

* Do not translate URL slugs for now, it breaks and needs a more patching
in order to work.


0.1.0 (2017-01-20)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion modeltranslation_wagtail/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__author__ = 'Benjamin Bach'
__email__ = 'benjamin@overtag.dk'
__version__ = '0.1.0'
__version__ = '0.2.0'
68 changes: 0 additions & 68 deletions modeltranslation_wagtail/models.py

This file was deleted.

2 changes: 0 additions & 2 deletions modeltranslation_wagtail/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def __init__(self, *args, **kwargs):
self.fields += [
'search_description',
'seo_title',
'slug',
'title',
'url_path'
]
super(TranslationOptions, self).__init__(*args, **kwargs)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='django-modeltranslation-wagtail',
version='0.1.0',
version='0.2.0',
description='The glue between django-modeltranslation and wagtail',
long_description=readme + '\n\n' + doclink + '\n\n' + history,
author='Benjamin Bach',
Expand Down
2 changes: 1 addition & 1 deletion test/test_modeltranslation_wagtail.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def setup_class(cls):
pass

def test_modeltranslation_setup(self):
self.assertTrue(hasattr(models.Test, 'slug_en'))
self.assertTrue(hasattr(models.Test, 'title_en'))

def test_default_language(self):
root = Page.get_first_root_node()
Expand Down
4 changes: 2 additions & 2 deletions test/transapp/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from modeltranslation_wagtail.models import TranslatedPage
from wagtail.wagtailcore.models import Page


class Test(TranslatedPage):
class Test(Page):
pass

0 comments on commit 20878aa

Please sign in to comment.