Skip to content

Replace charfields by textfields in DB where text need not have fixed/short length

Andrew Rechnitzer requested to merge burnt_text into main

Charfield in database has a default max length of 255 char. So we should use textfield for any user-input strings.

  • decide if we force usernames to be short (ie max of ... char?) calling @cbm755 punt to #2234

  • go through tables.py and look at all the charfields

    • change to textfield if can be long text
    • leave as charfield if text is short / fixed length
    • leave comment in tables.py for each char/text field
  • fix #2229 (closed)

Edited by Andrew Rechnitzer

Merge request reports