@staticmethod
    def getreport(planid, stamp):
        try:
            plan = Plan.objects.get(pk=planid)
        except:
            return 'error'

        filename = '%s_p%d_v%d_%s' % (plan.owner.username, plan.id, plan.version, stamp)

        return '/reports/%s.html' % filename
Adds some of Chef's automatic attributes:
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/tasks.py/PlanReport.getreport--crossover with--dataset/ETHPy150Open tobami/littlechef/littlechef/chef.py/_add_automatic_attributes