diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-02 15:02:12 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-02 15:02:12 -0500 |
commit | ab8055b5cab2523d925f59c65bc38df103a26991 (patch) | |
tree | 29e4597bc0d86d658f574c0c4f0b036351a68742 /app/unused_apps/guide/views.py | |
parent | 87f692178a6e30719c564076f00c206642f36ce6 (diff) |
deleted old apps and media
Diffstat (limited to 'app/unused_apps/guide/views.py')
-rw-r--r-- | app/unused_apps/guide/views.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/app/unused_apps/guide/views.py b/app/unused_apps/guide/views.py deleted file mode 100644 index c22a6b3..0000000 --- a/app/unused_apps/guide/views.py +++ /dev/null @@ -1,35 +0,0 @@ -from django.shortcuts import render_to_response, get_object_or_404 -from django.template import RequestContext - -from guide.models import Guide - - -def guide_list(request, page): - """List of all guides""" - request.page_url = "/guide/%d/" - request.page = int(page) - context = { - 'object_list': Guide.objects.filter(status__exact=1).order_by('-pub_date').select_related(), - 'page': page, - } - return render_to_response("archives/guide.html", context, context_instance=RequestContext(request)) - - -def guide_list_by_location(request, location): - context = { - "object_list": Guide.objects.filter(location__slug__exact=location), - } - return render_to_response("archives/guide.html", context, context_instance=RequestContext(request)) - - -def location_list(request): - """List of all locations with guides""" - context = { - "object_list": Guide.objects.filter(status__exact=1).order_by('-pub_date').select_related() - } - return render_to_response("archives/guide.html", context, context_instance=RequestContext(request)) - - -def guide_detail(request, slug, location=None): - obj = get_object_or_404(Guide, slug__exact=slug) - return render_to_response('details/guide.html', {'object': obj}, context_instance=RequestContext(request)) |