rpkilby / jsonfield

A reusable Django model field for storing ad-hoc JSON data
MIT License
1.16k stars 271 forks source link

JSONFormField subclasses CharField instead of TextField #211

Closed andirigible closed 4 years ago

andirigible commented 6 years ago

class JSONFormField(JSONFormFieldBase, fields.CharField)

Is this intentional? I would assume not, as the very next class declaration is a JSONCharFormField with the exact same superclasses.

rpkilby commented 4 years ago

Hi @andirigible. There is no forms.TextField. Instead, models.TextField.formfield passes the Textarea widget when creating its form field.