Hi, I am trying to do something like
class MyForm(forms.ModelForm):
myextra_field = forms.IntegerField()
class Meta:
models = Mymodel
fields = '__all__'
class MymodelAdmin(admin.ModelAdmin):
form = MyForm
fields = ["name", 'myextra_field']
def save(self, *args, **kwargs)
do something with myextra_field
I know that is possible to specify readonly_fields and fields works but in readonly mode that is not what i want.
So is there any way to have extra form fields in admin.ModelAdmin in edit mode?
--
"La utopía sirve para caminar"
Fernando Birri