Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions djangoseo/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from django.contrib.contenttypes.fields import GenericForeignKey
from django.template import Template, Context
from django.utils.encoding import python_2_unicode_compatible
from django.utils import translation
from six import string_types, with_metaclass

from djangoseo.utils import resolve_to_name, NotSet, Literal
Expand Down Expand Up @@ -386,6 +387,12 @@ def save(self, *args, **kwargs):
except AttributeError:
pass
else:
try:
language = self._language
except AttributeError:
language = translation.get_language()

translation.activate(language)
self._path = path_func()
try:
super(ModelInstanceMetadataBase, self).save(*args,
Expand Down