Changes between Initial Version and Version 1 of Ticket #31725, comment 1
- Timestamp:
- Jun 21, 2020, 4:29:16 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31725, comment 1
initial v1 1 1 I am not sure this should be solved on the model level, because IMHO it is related to the presentation level, so I would suggest solving this on Form/Template level. 2 2 When using i.e. DRF I would place `get_avatar` in the serializer and use `SerializerMethodField`. Also, I believe this can be solved on an individual codebase level without the need to integrate into Django. 3 So basically, I would suggest leaving the field empty and handle the default image somewhere else. I may be missing some context, though.