Skip to content
Snippets Groups Projects
Commit 6df68b0f authored by vlorentz's avatar vlorentz
Browse files

Remove release metadata from serialization if it's None.

It kind of matches the current state of the postgresql storage, which
does not support it.
parent 52b617cf
No related branches found
No related tags found
No related merge requests found
......@@ -238,6 +238,8 @@ class Release(BaseModel):
rel = attr.asdict(self)
rel['date'] = self.date.to_dict() if self.date is not None else None
rel['target_type'] = rel['target_type'].value
if rel['metadata'] is None:
del rel['metadata']
return rel
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment