forms - Django: ModelChoiceField remove default --------- choice -


मैं ModelChoiceField से डिफ़ॉल्ट --------- पसंद कैसे निकालूं?

का प्रयोग करें empty_label = none

field2 = forms.ModelChoiceField (queryset = ..., खाली_लैबिल = कोई नहीं)

कृपया

के लिए डॉक्टर की जांच करें

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -