Project

Profile

Help

« Previous | Next » 

Revision a9fdc824

IDa9fdc8241eb8284ef78a2d850c360a2be1c0c727
Parent bb4c7dce
Child d5c800e8

Added by dkliban@redhat.com 8 months ago

Problem: BaseDistribution.validate() is too Distribution specific

Solution: Move validate() to the Distribution instead

This patch allows classes that inherit from BaseDistribution to call super().validate(data) to get
the validation provided by the ModelSerializer.

This patch also removes base_path from BaseDistribution because it is defined on the Distribution.
DockerDistribution also defines it for itself.

re: #4669
https://pulp.plan.io/issues/4669