You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
408 B
22 lines
408 B
from hvad.models import TranslationManager
|
|
|
|
|
|
class ExpoImportManager(TranslationManager):
|
|
def create_by_dict(self, d):
|
|
model = self.model
|
|
id = d['id']
|
|
lang = d['lang']
|
|
if id:
|
|
expo = self.language(lang).get(id=id)
|
|
else:
|
|
expo = model()
|
|
expo.translate(lang)
|
|
|
|
|
|
aaaa
|
|
|
|
# save simple values
|
|
# save relations
|
|
|
|
|
|
|
|
|