should i have to open a ticket?
On 14 Nov, 23:19, Ric wrote:
> form_class is not in kwargs if the method is declared like this
>
> def formfield(self, form_class=forms.CharField, **kwargs):
>
> a possible solution is to use a code like this
>
> def formfield(self, **kwargs):
> form_class = kw
form_class is not in kwargs if the method is declared like this
def formfield(self, form_class=forms.CharField, **kwargs):
a possible solution is to use a code like this
def formfield(self, **kwargs):
form_class = kwargs.pop("form_class", self.choices and
forms.TypedChoiceField or forms.Char
yes but definitely not the current code, because i cannot subclass
with super
On 14 Nov, 15:46, ptone wrote:
> On Nov 13, 11:55 pm, Ric wrote:
>
>
>
>
>
>
>
>
>
> > the field class define this code
>
> > def formfield(self, form_class=forms.CharField, **kwargs):
> > """
> > R
On Nov 13, 11:55 pm, Ric wrote:
> the field class define this code
>
> def formfield(self, form_class=forms.CharField, **kwargs):
> """
> Returns a django.forms.Field instance for this database Field.
> """
> defaults = {'required': not self.blank,
>
the field class define this code
def formfield(self, form_class=forms.CharField, **kwargs):
"""
Returns a django.forms.Field instance for this database Field.
"""
defaults = {'required': not self.blank,
'label': capfirst(self.verbose_name),