File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ def get_context_data(self, **kwargs):
343343
344344
345345class V3AllTypesCreateView (V3Mixin , AllTypesCreateView ):
346- template_name = None
347346 v3_template_name = "news/v3/create.html"
348347 http_method_names = ["get" , "post" ]
349348
@@ -354,6 +353,13 @@ class V3AllTypesCreateView(V3Mixin, AllTypesCreateView):
354353 "video" : (Video , VideoForm ),
355354 }
356355
356+ def dispatch (self , request , * args , ** kwargs ):
357+ # Run AllTypesCreateView's profile-completeness guard before V3Mixin takes over.
358+ response = AllTypesCreateView .dispatch (self , request , * args , ** kwargs )
359+ if response .status_code != 200 :
360+ return response
361+ return super ().dispatch (request , * args , ** kwargs )
362+
357363 def get_context_data (self , ** kwargs ):
358364 context = super ().get_context_data (** kwargs )
359365 context .update (_v3_create_context ())
You can’t perform that action at this time.
0 commit comments