removed some unneedet dependencies
This commit is contained in:
parent
e2a45d1a29
commit
7e076dc6c4
@ -24,10 +24,6 @@ from utils.template import render_block_to_string
|
||||
|
||||
from system import config
|
||||
|
||||
from agenda.api import is_summary, children_list, \
|
||||
del_confirm_form_for_items
|
||||
from agenda.models import Item
|
||||
|
||||
from projector.api import get_active_slide
|
||||
|
||||
|
||||
|
@ -33,7 +33,6 @@ from reportlab.pdfbase import pdfmetrics
|
||||
from reportlab.pdfbase.ttfonts import TTFont
|
||||
|
||||
from openslides.agenda.models import Item
|
||||
from openslides.agenda.api import children_list
|
||||
from openslides.application.models import Application
|
||||
from openslides.assignment.models import Assignment
|
||||
#from openslides.poll.models import Poll, Option
|
||||
@ -231,7 +230,7 @@ def print_agenda(request):
|
||||
|
||||
doc.title = _("Agenda")
|
||||
# print item list
|
||||
items = children_list(Item.objects.filter(parent=None).order_by('weight'))
|
||||
items = Item.objects.all()
|
||||
for item in items:
|
||||
if item.hidden is False:
|
||||
# print all items"
|
||||
|
@ -1,14 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django import template
|
||||
from django.db import connection
|
||||
|
||||
register = template.Library()
|
||||
|
||||
@register.simple_tag
|
||||
def queries():
|
||||
out = ''
|
||||
for q in connection.queries:
|
||||
out += "<tr><td>%s</td><td>%s</td></tr>" % ( q['time'], q['sql'])
|
||||
return out
|
Loading…
Reference in New Issue
Block a user