Thursday, March 29, 2018

RE: how to hide filed use empty_value_display

Maybe you are looking for "empty_label=None"?

https://docs.djangoproject.com/en/2.0/ref/forms/fields/#django.forms.ModelChoiceField.empty_label

 

 

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of shawnmhy@gmail.com
Sent: Wednesday, March 28, 2018 6:09 AM
To: Django users
Subject: how to hide filed use empty_value_display

 

Hi Everyone!

 

Is there any method to do not display the blank field use 'empty_value_display'?

 

I mean, only appear those fields with values but not show those fields without values.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/67b5c7a4-e929-472e-8ff3-53f24710f13e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment