發表文章

Having a dynamic rest view duplicates the user-list url

圖片
1 (I have a custom user model) I do not understand why this is happening. These are my expected urls: python manage.py show_urls /api/v1/ rest_framework.routers.APIRootView api-root /api/v1/.<format>/ rest_framework.routers.APIRootView api-root /api/v1/users/ users.views.UserCreateViewSet user-list /api/v1/users/<pk>/ users.views.UserViewSet user-detail /api/v1/users/<pk>.<format>/ users.views.UserViewSet user-detail /api/v1/users.<format>/ users.views.UserCreateViewSet user-list As soon as I include in my urls.py a view based on DynamicModelViewSet : from dynamic_rest.viewsets import DynamicModelViewSet class AggregateViewSet(DynamicModelViewSet): pass My user-list urls are duplicated: » python manage.py show_urls /...

Kenneth Williams

圖片
For other people named Kenneth Williams, see Kenneth Williams (disambiguation). Publicity photo of Williams in the early 1960s Kenneth Charles Williams (22 February 1926 – 15 April 1988) was an English actor, best known for his comedy roles and in later life as a raconteur and diarist. He was one of the main ensemble in 26 of the 31 Carry On films, and appeared in many British television programmes and radio comedies, including series with Tony Hancock and Kenneth Horne. [1] [2] Williams grew up in Central London in a working class family. He served in the Royal Engineers during World War II, where he first became interested in becoming an entertainer. After a short spell in repertory theatre as a serious actor, he turned to comedy and achieved national fame in Hancock's Half Hour , appearing throughout the radio series' run. He sustained continued success throughout the 1960s and '70s with his regular appearances in Carry On films, and subsequently kept himse...