Opened 2 years ago

Closed 2 years ago

#33913 closed Cleanup/optimization (invalid)

Django 4.1 class-based view, Chinese translation

Reported by: yuyuyu Owned by: nobody
Component: Documentation Version: 4.1
Severity: Normal Keywords: Document error
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

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.

Change History (1)

comment:1 by Mariusz Felisiak, 2 years ago

Resolution: invalid
Status: newclosed

Thanks for the report, however, translations are handled at Transifex and not in this tracker.

Note: See TracTickets for help on using tickets.
Back to Top