M docs/release_notes.rst => docs/release_notes.rst +9 -0
@@ 11,6 11,15 @@ Release plan
* **0.5** should remove Django 1.11 support and target Bootstrap v4, if you are interested in this work, please get in touch on Github!
+0.4.5
+-----
+
+Fixed
+~~~~~
+
+* Django admin error when uploading images: Column 'revision_number' cannot be null :url-issue:`950` (Benjamin Bach)
+
+
0.4.4
-----
M src/wiki/__init__.py => src/wiki/__init__.py +1 -1
@@ 19,5 19,5 @@ from wiki.core.version import get_version
default_app_config = 'wiki.apps.WikiConfig'
-VERSION = (0, 4, 4, 'final', 0)
+VERSION = (0, 4, 5, 'final', 0)
__version__ = get_version(VERSION)
M src/wiki/plugins/images/models.py => src/wiki/plugins/images/models.py +4 -1
@@ 101,7 101,10 @@ class ImageRevision(RevisionPluginRevision):
ordering = ('-created',)
def __str__(self):
- return gettext('Image Revision: %d') % self.revision_number
+ if self.revision_number:
+ return gettext('Image Revision: %d') % self.revision_number
+ else:
+ return gettext('Current revision not set!!')
def on_image_revision_delete(instance, *args, **kwargs):