Changes between Initial Version and Version 1 of Ticket #22436, comment 3


Ignore:
Timestamp:
Apr 14, 2014, 4:09:15 PM (10 years ago)
Author:
chris cauley

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22436, comment 3

    initial v1  
    1 Your specific problem can be easily fixed by moving the upload_thumb method outside of the Photo class. Unless call Photo.upload_thumb anywhere there's no difference between the two. There's nothing wrong with how you did it before, but there's no way to implement migrations with as you had it (except manually typing qualname for Photo.upload_to like you did). I'll expand on this in a second comment, but for now here's your solution.
     1Your specific problem can be easily fixed by moving the upload_thumb method outside of the Photo class. Unless Photo.upload_thumb is called anywhere there's no difference between the two. There's nothing wrong with how you did it before, but there's no way to implement migrations as typed above (except manually typing qualname for Photo.upload_to like you did). I'll expand on this in a second comment, but for now here's the solution.
    22
    33{{{
Back to Top