Exemple #1
0
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"}
    })
Exemple #2
0
 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
Exemple #3
0
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"
                                  }
                              })
Exemple #4
0
 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