Changes between Initial Version and Version 1 of Ticket #36171, comment 5


Ignore:
Timestamp:
Feb 5, 2025, 8:55:47 AM (2 weeks ago)
Author:
Antoliny

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36171, comment 5

    initial v1  
     1Replying to [comment:4 Sarah Boyce]:
     2> To me, the issue here is in the string method should always return a string (eg. `return self.author or ""`)
     3> If you want to keep spaces, you will need a custom form with `strip=False` (see https://docs.djangoproject.com/en/5.1/ref/forms/fields/#charfield)
     4
    15sarahboyce, I have a small question. 🙋
    26It seems this issue occurs because even though we set `blank=True` in the `Field(Model)`, but the admin `Form` doesn't allow empty value.
Back to Top