Пример #1
0
    def getReport(product=None):
        if product:
            mycontext = {
                "usecases": UseCase.objects.filter(feature__in=product.features.all),
                "product_name": product.name,
                "autoescape": False,
            }
        else:
            mycontext = {"usecases": UseCase.objects.all, "product_name": "All products", "autoescape": False}

        return render_to_latex("admin/fur/usecase/report_usecase.tex", mycontext)
Пример #2
0
    def getReport(product=None):
        if product:
            mycontext = {
                "glossary": Glossary.objects.filter(feature__in=product.features.all).distinct(),
                "product_name": product.name,
                "autoescape": False,
            }
        else:
            mycontext = {"glossary": Glossary.objects.all, "product_name": "All products", "autoescape": False}

        return render_to_latex("admin/fur/glossary/report_glossary.tex", mycontext)
Пример #3
0
 def getReport(product=None):
     if product:
         mycontext = {"features": product.features.all, "product_name": product.name, "autoescape": False}
     else:
         mycontext = {"features": Feature.objects.all, "product_name": "All products", "autoescape": False}
     return render_to_latex("admin/fur/feature/report_features.tex", mycontext)