On 7/05/2020 7:24 pm, Derek wrote:
I do something similar but not exactly the same. Perhaps like this
(WARNING: untested code) under the class MyModelAdmin:
def get_form(self, request, obj=None, **kwargs):
form = super(MyModelAdminForm, self).get_form(request, obj,
**kwargs)
I do something similar but not exactly the same. Perhaps like this
(WARNING: untested code) under the class MyModelAdmin:
def get_form(self, request, obj=None, **kwargs):
form = super(MyModelAdminForm, self).get_form(request, obj,
**kwargs)
if form.base_fields:
f
One of my Admin forms has a price field and the currency and symbol
depend on the selected region.
I would like to display (readonly) just the field content for currency
and symbol for example ...
"AUD $ [ 222.22]"
... but all I can achieve at the moment is ...
"Currency:
3 matches
Mail list logo