mirror of https://github.com/zulip/zulip.git
comments: Add comment to Realm.deployment().
I refer to github issue 1845 here.
This commit is contained in:
parent
bc9a75ab24
commit
1672353558
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue