openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

♻️(refactor) update `GenericViewSet` to `NestedGenericViewSet` for API client and admin viewsets #762

Closed jonathanreveille closed 2 months ago

jonathanreveille commented 3 months ago

Some of our viewsets can benefit from the class NestedGenericViewSet.

The classes that were eligible for this refactor will be updated.

Purpose

The custom NestedGenericViewset was implemented after some viewsets. Some of those viewsets will finally benefit from this class if eligible.

Proposal