On Tue, Feb 19, 2013 at 12:14 PM, psychok7 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_v
Thats it, it now works. thanks a bunch
On Tuesday, February 19, 2013 12:26:35 PM UTC, JirkaV wrote:
>
> You have
>
> ShowAppsView.as_view()(self.request)
>
> at the end of the code you pasted below. That means that you get result of
> the ShowAppsView which gets immediatelly discarded ("forgotten
You have
ShowAppsView.as_view()(self.request)
at the end of the code you pasted below. That means that you get result of
the ShowAppsView which gets immediatelly discarded ("forgotten") because
you don't do anything with it.
You probably want
return ShowAppsView.as_view()(self.request)
but tha
What do you mean not returnig?? i have a return statement. how should i do
it?
> if u.username == username:
> >
> cities_list=City.objects.filter(user_id__exact=self.current_user_id(request)).order_by('-kms')
>
>
> > allcategories = Category.objects.all()
> > allcities = City.objects.all()
On Tue, Feb 19, 2013 at 11:34 AM, psychok7 wrote:
> hi, i am trying to call a class based view and i am able to do it, but for
> some reason i am not getting the context of the new class
>
> class ShowAppsView(LoginRequiredMixin, CurrentUserIdMixin, TemplateView):
> template_name = "accounts/thing
hi, i am trying to call a class based view and i am able to do it, but for
some reason i am not getting the context of the new class
class ShowAppsView(LoginRequiredMixin, CurrentUserIdMixin, TemplateView):
template_name = "accounts/thing.html"
def compute_context(self, request, username):
u = g
6 matches
Mail list logo