~netlandish/django-wiki

a8dd54710e5f38acee87ae2f195c252517508ef0 — Benjamin Bach 5 years ago 84c10ca + a525064
Merge pull request #961 from benjaoming/fix-image-revision-number-null

Fix image revision number null
3 files changed, 14 insertions(+), 2 deletions(-)

M docs/release_notes.rst
M src/wiki/__init__.py
M src/wiki/plugins/images/models.py
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):