On Tue, Feb 19, 2013 at 12:14 PM, psychok7 <[email protected]> wrote:
> What do you mean not returnig?? i have a return statement. how should i do
> it?
>

You have this code:

  if u.username == username:
      if request.GET.get('action') == 'delete':
          #some logic here and then:
          ShowAppsView.as_view()(self.request)

When you call the other CBV like this, it produces a response. You
don't store it anywhere, so it is discarded. In effect, you run the
entire other view, produce a response and throw it away.

I thought you should return the response at this point, but on closer
inspection of the code, this is in compute_context(), which probably
is expecting a context to be returned, not a response.

You may need someone with more experience in CBVs.

Cheers

Tom

PS: Please don't email me directly in reply, I replied to the original
list email, it's quite likely I'll read any follow ups posted to list,
I don't need them in my inbox as well.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to