Add a metadata property for CollectionRequirement (#66370)

* Add a metadata property for CollectionRequirement so the _metadata attribute doesn't need to be accessed directly

* changelog
pull/65381/head
Sloane Hertel 5 years ago committed by Sam Doran
parent b9b2ddc580
commit 1cb634a3ab

@ -0,0 +1,2 @@
minor_changes:
- CollectionRequirement - Add a metadata property to update and retrieve the _metadata attribute.

@ -93,6 +93,11 @@ class CollectionRequirement:
def __unicode__(self):
return u"%s.%s" % (self.namespace, self.name)
@property
def metadata(self):
self._get_metadata()
return self._metadata
@property
def latest_version(self):
try:

Loading…
Cancel
Save