News for hackers. Stuff that matters.
Re:Common mistakes in PostgreSQL by orf on Friday May 03, 2019 @02:24PM (#19820935)
I’m pretty sure Django doesn’t actually create a limited char field that way, it merely adds validation. For exactly this reason.
Re:Common mistakes in PostgreSQL by rrauenza on Friday May 03, 2019 @03:15PM (#19821375)
It does pass the limit down. I've just verified my schema that has a varchar(128).

One of the reasons given in the bug for it being difficult to fix is down in the depths it assumes it is a varchar() -- with parentheses.

Here's the relevant comment:

https://code.djangoproject.com/ticket/14094#comment:13