[Django]-How is Django's classonlymethod useful?

5👍

It is used internally on class-based views’ as_view to give a descriptive error message to people who try to call it on an instance.

I’m not sure who first decided it’s mandatory.

Leave a comment