comments: Add comment to Realm.deployment().

I refer to github issue 1845 here.
This commit is contained in:
Steve Howell 2016-09-23 15:44:55 -07:00 committed by Tim Abbott
parent bc9a75ab24
commit 1672353558
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ class Realm(ModelReprMixin, models.Model):
@property @property
def deployment(self): def deployment(self):
# type: () -> Any # returns a Deployment from zilencer.models # type: () -> Any # returns a Deployment from zilencer.models
# see https://github.com/zulip/zulip/issues/1845 before you
# attempt to add test coverage for this method, as we may
# be revisiting the deployments model soon
try: try:
return self._deployments.all()[0] return self._deployments.all()[0]
except IndexError: except IndexError: