Esempio n. 1
0
def trends_listings(request):
    context = get_status(request)

    context['app'] = 'items_panel'
    context['country_sites'] = country_sites(user_country_access(request.user))
    context['form'] = TrendsPanelForm(
        user=request.user, initial=request.session.get('form_session'))

    return render_to_response('trends_panel.html',
                              context,
                              context_instance=RequestContext(request))
Esempio n. 2
0
def trends_listings(request):
    context = get_status(request)

    context['app'] = 'items_panel'
    context['country_sites'] = country_sites(user_country_access(request.user))
    context['form'] = TrendsPanelForm(
        user=request.user,
        initial=request.session.get('form_session'))

    return render_to_response('trends_panel.html', context,
                              context_instance=RequestContext(request))
Esempio n. 3
0
 def filter_user(self, user):
     return self.queryset.filter(country__in=user_country_access(user))
Esempio n. 4
0
 def filter_user(self, user):
     countries = user_country_access(user)
     return self.queryset.filter(site__country__in=countries)
Esempio n. 5
0
 def filter_user(self, user):
     return self.queryset.filter(country__in=user_country_access(user))
Esempio n. 6
0
 def filter_user(self, user):
     countries = user_country_access(user)
     return self.queryset.filter(site__country__in=countries)