id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 30406,Charfield max length error.,hardcase,nobody," Hello I have the following bug: “value too long for type character varying(20)” It appears when I am trying to create entry in model with the following field: boat_name = models.CharField(max_length=50, unique=True, db_index=True, verbose_name=""Boat model"", help_text=""Please input boat model"", ) As you can see max_length restriction here is 50 symbols, but error is appear on 20 plus. I have tried to change this max_length in database(postrgee), to change it by command : ALTER TABLE boats_boatmodel ALTER COLUMN boat_name TYPE VARCHAR(50) to change Charfielt to Textfield to delete this field, then migrate, then add it again, then migrate – no effect to change max_length in models -no effect ",Bug,closed,"Database layer (models, ORM)",2.2,Normal,invalid,max length restriction error,,Unreviewed,0,0,0,0,0,0