Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
PicturePlugin longdesc cannot be null? #1170
As of many years ago, when longdesc was added to the Picture model, it set null=True, which despite being frowned upon for CharFields (because then you have to search for '' and NULL), could be useful, in the following kind of case:
This doesn't appear to work (At least on my local setup, using ... MySQL), as longdesc is marked as NOT NULL. I know Picture is the poor child no-one wants to love, or keep, particularly, but the migration should probably reflect the actual state of the plugin.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
As of right now, I can't actually confirm that doing
This seems to be because of line 113 of (at the least) the last migration, which added
As I have no idea what CMSPluginPublic is (I've never even seen the class, and have no idea if it's still relevant), I'm hesitant to attempt to fix it (and thus see if this ticket even has merit) without someone more knowledgable wading in to confirm this.