Thank you again Roger, now the fields are rendered in the correct order.
Someone knows why the language switchers for the inherited fields *title*
and *description* are rendered, and aren't rendered for the *keywords*
field (*keywords_string*)? However migration create the languages fields
for keywords in the database: *keywords_string_es*, *keywords_string_it*,
etc.
This is an example of the file *translation.py*
class IngredientTranslationOptions(TranslatedDisplayable, TranslatedRichText
):
fields = ('title', 'description', 'keywords_string', 'information',)
translator.register(Ingredient, IngredientTranslationOptions)
and this is an image of the result, language switchers for the keywords
field aren't rendered. Someone knows why?
<https://lh3.googleusercontent.com/-mnTvd1r4w_I/Wb_o66I6KmI/AAAAAAAAAeQ/DdMmwUETrGocCisQ2VNbT1BWvomwRxEmACLcBGAs/s1600/Schermata%2B2017-09-18%2Balle%2B17.40.02.png>
<https://lh3.googleusercontent.com/-mnTvd1r4w_I/Wb_o66I6KmI/AAAAAAAAAeQ/DdMmwUETrGocCisQ2VNbT1BWvomwRxEmACLcBGAs/s1600/Schermata%2B2017-09-18%2Balle%2B17.40.02.png>
Il giorno giovedì 14 settembre 2017 13:12:56 UTC+2, Rainell Dilou Gómez ha
scritto:
>
> Hello,
> I have created a custom content type and I have a problem with the listing
> in the admin panel. If I extends PageAdmin
>
>
> admin.site.register(Ingredient, PageAdmin)
>
> the create/edit page is rendered as in the image
>
>
> <https://lh3.googleusercontent.com/-Ohd3o8QKwmg/WbpcWgjV5fI/AAAAAAAAAdc/i_yp_ntXQEcTMcfB8-5yFBsySLINt11sgCLcBGAs/s1600/Schermata%2B2017-09-14%2Balle%2B12.26.00.png>
>
> and this is great for creating and editing, but the listing in the page
> section, as show in the following image, is a problem because the
> Ingredients (my custom content type) will be many, will be hundreds.
>
>
> <https://lh3.googleusercontent.com/-Yap3P0bVjw0/WbpbLnHhsMI/AAAAAAAAAdQ/HGkHjriVlRIMgb1qoH7OMxusCZQdvoEeACLcBGAs/s1600/Schermata%2B2017-09-14%2Balle%2B12.24.32.png>
>
> If instead I don't extend PageAdmin
>
> admin.site.register(Ingredient)
>
> my custom content type list is rendered as in the following image, in a
> more convenient way, considering that there will be hundreds of Ingredients
>
>
> <https://lh3.googleusercontent.com/-ehaJO4GKoHs/WbpfH1qDOFI/AAAAAAAAAdo/I2BKgYN5jyUADxoBgDpNIgJ3jM13JD0tACLcBGAs/s1600/Schermata%2B2017-09-14%2Balle%2B12.27.13.png>
> but the create/edit page will be rendered as in the next image, and it
> isn't convenient, considering that the fields are twice as many as are
> shown in this image.
>
>
> <https://lh3.googleusercontent.com/-eT-u4auTnCU/WbphFcKL65I/AAAAAAAAAd8/ZO51pAVa3SsThgkUJSPJs0OTGs_NZatIQCLcBGAs/s1600/Schermata%2B2017-09-14%2Balle%2B12.27.38.png>
>
> So how can I do to create/edit as when using PageAdmin and list as when
> not using PageAdmin?
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.