mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
@@ -2351,6 +2351,7 @@ class CustomFieldWithQuerysetButNoLimitChoicesTo(forms.Field):
|
|||||||
|
|
||||||
class StumpJokeWithCustomFieldForm(forms.ModelForm):
|
class StumpJokeWithCustomFieldForm(forms.ModelForm):
|
||||||
custom = CustomFieldWithQuerysetButNoLimitChoicesTo()
|
custom = CustomFieldWithQuerysetButNoLimitChoicesTo()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = StumpJoke
|
model = StumpJoke
|
||||||
fields = () # We don't need any fields from the model
|
fields = () # We don't need any fields from the model
|
||||||
|
|||||||
Reference in New Issue
Block a user