drf-api-tracking icon indicating copy to clipboard operation
drf-api-tracking copied to clipboard

How to apply to all views/viewsets?

Open marzique opened this issue 4 years ago • 4 comments

Is there any way to log all my api views without adding mixins to each of them?

marzique avatar Feb 26 '21 16:02 marzique

you could create a derived class with the mixin added and make your views all derive from that new class? On 26 Feb 2021 16:25, Denys [email protected] wrote: Is there any way to log all my api views without adding mixins to each of them?

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

lingster avatar Feb 27 '21 15:02 lingster

Yeah, but even then I still need to put it manually to all of my views :(

marzique avatar Mar 04 '21 14:03 marzique