-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TranslatableAdmin select only translated models #322
Comments
Hello! Such models have always been considered errors anyway (older hvad versions show them, but log an error everytime one is encountered). And hvad2 will prevent them altogether. I am actually wondering how you create them (admin should not let you create them for instance), and what you use them for? |
In my case (only one model on my db), this model has untranslated representative fields and some optional translatable fields. Instances are created with Django Rest Framework through This instances are no more listed in django admin since Django upgrade. I override get_queryset() on |
Interesting. I guess that's something that should be addressed at the I see where this happens. When I will look into it. In the meantime, I suggest you force a language on the serializer, by either of the following means:
Overriding Thanks for your time :) |
There is a way to set language to records added before installing django-havd on my app? I know I just could do a forloop with django shell but something like a task Also It should be said in django-havd admin documentation about old records without language will not be displayed in admin. |
Hello! I'm on holidays accessing github from my phone. This very question was discussed in a recent issue I believe. I can find it when I come back if you want. |
Hello, hope it's not too late to comment on this issue. I also have hit this issue and I want to make old records visible from before installing hvad. What's the Thanks |
Is there any reason for TranslatableAdmin to list only translated models ? Also it looks like (but not tested) that with django < 1.9 there is a different behaviour ?
https://github.com/KristianOellegaard/django-hvad/blob/master/hvad/admin.py#L334
Maybe I've missed somethings, thank you for help 👍
The text was updated successfully, but these errors were encountered: