Changes between Initial Version and Version 1 of Ticket #31725, comment 1


Ignore:
Timestamp:
Jun 21, 2020, 4:29:16 AM (4 years ago)
Author:
Alexandr Tatarinov

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31725, comment 1

    initial v1  
    11I 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.
    22When 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.
     3So basically, I would suggest leaving the field empty and handle the default image somewhere else. I may be missing some context, though.
Back to Top