Changes between Initial Version and Version 1 of Ticket #36171, comment 5
- Timestamp:
- Feb 5, 2025, 8:55:47 AM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36171, comment 5
initial v1 1 Replying 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 1 5 sarahboyce, I have a small question. 🙋 2 6 It seems this issue occurs because even though we set `blank=True` in the `Field(Model)`, but the admin `Form` doesn't allow empty value.