You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method URLField.gen_value frequently generates identical values. As a result of this issue, several work-arounds have been added to module nailgun.entities. One example is at Media.create_missing:
defcreate_missing(self):
"""Give the ``path_`` instance attribute a value if it is unset. By default, :meth:`nailgun.entity_fields.URLField.gen_value` does not return especially unique values. This is problematic, as all media must have a unique path. """ifnothasattr(self, 'path_'):
self.path_=gen_url(subdomain=gen_alpha())
returnsuper(Media, self).create_missing()
Let's fix gen_url and drop the work-arounds from module nailgun.entities.
The text was updated successfully, but these errors were encountered:
Method
URLField.gen_value
frequently generates identical values. As a result of this issue, several work-arounds have been added to modulenailgun.entities
. One example is atMedia.create_missing
:Let's fix
gen_url
and drop the work-arounds from modulenailgun.entities
.The text was updated successfully, but these errors were encountered: