Re: Error in formfield in django.db.models.field

2011-11-16 Thread Ric
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

Re: Error in formfield in django.db.models.field

2011-11-14 Thread Ric
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

Re: Error in formfield in django.db.models.field

2011-11-14 Thread Ric
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

Re: Error in formfield in django.db.models.field

2011-11-14 Thread ptone
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, >          

Error in formfield in django.db.models.field

2011-11-13 Thread Ric
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),