def issue_view(request, pk): issue = issue_by_number(pk) return direct_to_template(request, "issue_view.html", extra_context={ "issue": issue, "get_user": get_user(), "nav": {"selected": "issues"} })
def add_log(self, text): """ Adds in a log on the issue for the current user """ log = Log(creator=get_user(), timestamp=datetime.now(), text=text, issue=self) log.save() return log
def issue_view(request, pk): issue = issue_by_number(pk) return direct_to_template(request, "issue_view.html", extra_context={ "issue": issue, "get_user": get_user(), "nav": { "selected": "issues" } })