diff --git a/README.md b/README.md index 77f20ff84..dbaf617e9 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ python manage.py runserver_plus --cert-file cert.crt 0.0.0.0:3000 ### Running the tests -[![Coverage Status](https://coveralls.io/repos/github/ecds/readux/badge.svg?branch=develop)](https://coveralls.io/github/ecds/readux?branch=develop) +[![Coverage Status](https://coveralls.io/repos/github/ecds/readux/badge.svg?branch=release)](https://coveralls.io/github/ecds/readux?branch=release) Readux uses Django's default test framework, but is configured to use pytest. @@ -89,7 +89,7 @@ To run the tests, simply run: pytest apps/ ~~~ -Readux is configured to use [Travis CI](https://travis-ci.org/ecds/readux). Any push will trigger build. +Readux is configured to use [Travis CI](https://api.travis-ci.com/ecds/readux.svg?branch=release). Any push will trigger build. ### Deploy diff --git a/apps/iiif/manifests/models.py b/apps/iiif/manifests/models.py index 96ad94241..04333f27d 100644 --- a/apps/iiif/manifests/models.py +++ b/apps/iiif/manifests/models.py @@ -162,7 +162,7 @@ def user_annotation_count(self, user=None): #update search_vector every time the entry updates def save(self, *args, **kwargs): # pylint: disable = arguments-differ - if self.start_canvas is None and self.canvas_set.exists(): + if self.start_canvas is None and hasattr(self, 'canvas_set') and self.canvas_set.exists(): self.start_canvas = self.canvas_set.first() super().save(*args, **kwargs) diff --git a/apps/readux/__init__.py b/apps/readux/__init__.py index 1452326dd..3f3907994 100644 --- a/apps/readux/__init__.py +++ b/apps/readux/__init__.py @@ -1 +1 @@ -__version__ = '2.0.0-alpha.4' +__version__ = '2.0.1'