現在、別のクラスベースのジェネリックビュー内からクラスベースのジェネリックビューを呼び出そうとしていますが、正しく実行できないようです。
私が試した方法:
result = CategoryTypes.as_view() # The same way you put it in the urlconf
print result
プリント:<function CategoryTypes at 0x92bd924>
CategoryTypes.as_view()(self.request)
# &
CategoryTypes().dispatch(self.request)
トレースバック:
ContentNotRenderedError at /crm/categories/company/
The response content must be rendered before it can be accessed.
result = CategoryTypes().__init__()
print result
プリント:None
別の観点からこれを呼び出すにはどうすればよいですか?私はクラスのすべてのメソッドとそれを呼び出す方法を真剣に試しました。