Jacek Tomaszewski
Jacek Tomaszewski
The goal is not to display translated True/False (which can be made with `gettext`), but to have a set of boolean fields per language. Consider Article class: it has title,...
The first thought is "yes". It would need to rewrite `.filter(title__icontains = 'Christmas')` into `.filter(Q(title_fr__icontains = 'Christmas') | Q(title_fr='', title_en__icontains = 'Christmas'))`
@amarandon Yes, I think this should come to modeltranslation. I've already designed a patch in my mind, but I have little time to actually write it down. :( Comming (not...
Since currently `unique_together` is not affected it refers to original field which value is unknown. However, validation should fail. Need to check. Or: rewrite `unique_together` if contains translation fields? But...
When you try to `MyModel.objects.get(parent=parent_obj, slug=slug)` does it return the appropriate object?
No, I'm asking whether `MyModel.objects.get(parent=parent_obj, slug=slug)` behave the way that you want it work. Or if that fits you: ``` try: my_obj = MyModel.objects.get(parent=parent_obj, slug=slug) except MyModel.DoesNotExists: raise Http404 ```...
Ah, I see. So `filter` and `get` don't work with fallback yet, unfortunatelly. Moreover, I'm not sure if we can just add fallback support to every `filter` or `get`. Wouldn't...
It is somehow documented: http://django-modeltranslation.readthedocs.org/en/latest/usage.html#falling-back "This mechanism affects field access, as well as `values()` and `values_list()` manager methods." - nor `filter`nor `get` are mentioned. But you're generally right, one might...
Ha, that's because `Bar` is not registered for translation, is it? And as a consequence, its manager is not multiligual-aware... Try registering `Bar` for translation with empty `fields`.
Gosh, it's there, just read it carefully: http://django-modeltranslation.readthedocs.org/en/latest/installation.html#required-settings