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)
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)
def getReport(product=None): if(product): mycontext = {'testCases': TestCase.objects.filter(use_case__in=UseCase.objects.filter(feature__in=product.features.all)).distinct(), 'product_name': product.name, 'autoescape': False} else: mycontext = {'testCases': TestCase.objects.all, 'product_name': "All products", 'autoescape': False} return render_to_latex("admin/fur/testcase/report_testcase.tex",mycontext)