Dynamic ModelAdmin Field

2016-07-14 Thread Bernat Bonet
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

Re: Dynamic ModelAdmin Field

2016-07-15 Thread Derek
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

Re: Dynamic ModelAdmin Field

2016-07-22 Thread Bernat Bonet
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