I need to add dynamic fields to ModelAdmin that are not part of the Model.
Models:
product: cod, des
product_categories: cat, val
I want to add val1, val2 in ProductAdmin
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
Why not use custom methods on your model? These can effectively act as
extra properties:
*https://docs.djangoproject.com/en/1.9/topics/db/models/#model-methods*(this
is assuming you do not want to store any data of course... otherwise you
will need to give a more concrete example of what you
El jueves, 14 de julio de 2016, 17:29:38 (UTC+2), Bernat Bonet escribió:
>
> I need to add dynamic fields to ModelAdmin that are not part of the Model.
>
> Models:
>
> product: cod, des
> product_categories: cat, val
>
> I want to add val1, val2 in ProductAdmin
>
> Thanks
>
>
>
--
You received
3 matches
Mail list logo