--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c1d74b1-c03c-4c2b-b8db-7d44a06531c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
Thanks for the response.
What do you mean by tri-state?
I changed my get_form to this:
def get_form(self, request, obj=None, **kwargs):
form = super(RequestForChangeAdmin, self).get_form(request, obj, **kwargs)
if obj:
if obj.readiness == True:
self.exclude = ("readinessDescription", )
form = super(RequestForChangeAdmin, self).get_form(request, obj, **kwargs)
return form
No my code run without errors, but nothing happpends though ☺
I have tried to change the readiness filds to yes and no, but the field readiness descriptions is always displayed. Maybe it is not possibly to get a fields attribute value from admin before the admin form is posted or stored in database? Do you know?
Regards,
Hilde from Norway
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5bc768df-3a1c-4b53-bbbb-2ec19b9c05f0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cd42fea2-88f0-4f0f-b98e-985f7c464189%40googlegroups.com.