#33913: Django 4.1 class-based view, Chinese translation
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
BeHappy0o0o0o0 |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 4.1
Documentation |
Severity: Normal | Keywords: Document error
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Document link address: https://docs.djangoproject.com/zh-hans/4.1/topics
/class-based-views/intro/#decorating-the-class
Error content:
类上的方法与独立函数完全不同,因此你不能应用函数装饰器到方法上——你需要先将
它转换为方法装饰器。method_decorator 装饰器转换函数装饰器为**防范**装饰器
,这样它就被用在实例方法上。举例:
Suggest modification:
类上的方法与独立函数完全不同,因此你不能应用函数装饰器到方法上——你需要先将
它转换为方法装饰器。method_decorator 装饰器转换函数装饰器为**方法**装饰器
,这样它就被用在实例方法上。举例:
end.
--
Ticket URL: <https://code.djangoproject.com/ticket/33913>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701828c346191-f7f0c1bd-8094-4318-bee1-ecadf979da06-000000%40eu-central-1.amazonses.com.