News for hackers. Stuff that matters.
Re:Common mistakes in PostgreSQL by hawaiian on Friday May 03, 2019 @08:32PM (#19823458)
>Seriously ? everytime I create a django charfield I try to guess in my head what is the best length for this field to optimize for performance, but sounds like using unlimited length (textfield) field doesn't make any difference. Good news

Pretty much, except if you're using ModelForms you'll end up rendering a different element by default, and the admin (if you use it) will be different. Not really a problem with DRF without the browsable API.

Re:Common mistakes in PostgreSQL by haihaibye on Saturday May 04, 2019 @05:42AM (#19825444)
You can change the element for a field in widgets in the Meta class of a form.