@classonlymethod in Django
xxxxxxxxxx
class PythonClass:
@classonlymethod #This is the classonlymethod decorator
def my_method()
print("MyClass my_method")
# With the @classonlymethod decorator you can only use
# the method using the Class (in this case 'PythonClass')
PythonClass.dev()
# Creating an instance and calling the method will result in an error
# myclass_instance = PythonClass()
# my_obj.dev()