Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Remove unused templatetag function get_survey_list_for_site
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbegbie committed Mar 19, 2018
1 parent 8282efd commit 89d7a4a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions molo/surveys/templatetags/molo_survey_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,6 @@ def surveys_list(context, pk=None, only_linked_surveys=False,
return add_form_objects_to_surveys(context)


@register.simple_tag(takes_context=True)
def get_survey_list_for_site(context):
context = copy(context)
main = context['request'].site.root_page
page = SurveysIndexPage.objects.child_of(main).live().first()
if page:
return (
MoloSurveyPage.objects.child_of(page).filter(
languages__language__is_main_language=True).specific())
return None


@register.simple_tag(takes_context=True)
def submission_has_article(context, survey_id, submission_id):
survey_page = get_object_or_404(Page, id=survey_id).specific
Expand Down

0 comments on commit 89d7a4a

Please sign in to comment.