from django.utils.decorators Import method_decorator . 1 , a method of adding the post or get @method_decorator (decorator) 2 , is added to the class decorator @method_decorator (decorator, name = "" ) name where the post is equal to or get
from django.utils.decorators Import method_decorator . 1 , a method of adding the post or get @method_decorator (decorator) 2 , is added to the class decorator @method_decorator (decorator, name = "" ) name where the post is equal to or get