2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 21:17:08 +00:00

[svn] Updates to allow subcave tree with nice admin.

This commit is contained in:
substantialnoninfringinguser
2009-05-21 19:47:19 +01:00
parent 01b0980c44
commit 891b3abb44
46 changed files with 1931 additions and 33 deletions

13
feincms/shortcuts.py Normal file
View File

@@ -0,0 +1,13 @@
from django.shortcuts import render_to_response
from django.template import RequestContext
from feincms.module.page.models import Page
def render_to_response_best_match(request, template_name, dictionary=None):
dictionary = dictionary or {}
dictionary['feincms_page'] = Page.objects.best_match_for_request(request)
return render_to_response(template_name, dictionary,
context_instance=RequestContext(request))