Make images ImageFields and not strings with some magic #3

Open
opened 2018-01-02 11:11:42 +00:00 by sanj · 2 comments
Owner
No description provided.
Author
Owner

The image field for Content here is defined as a CharField: https://code.with.camp/CAMP/camp/src/master/content/models.py#L79

This should be changed to an ImageField and data migrations performed appropriately.

Are there other instances where image fields have the wrong type defined in the models?

The image field for Content here is defined as a CharField: https://code.with.camp/CAMP/camp/src/master/content/models.py#L79 This should be changed to an ImageField and data migrations performed appropriately. Are there other instances where image fields have the wrong type defined in the models?
Owner

think its only that one case, all access to the field should already go via image_url https://code.with.camp/CAMP/camp/src/master/content/models.py#L124

think its only that one case, all access to the field should already go via image_url https://code.with.camp/CAMP/camp/src/master/content/models.py#L124
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: CAMP/camp#3
No description provided.