summaryrefslogtreecommitdiffstats
path: root/qtip/web/bench/models.py
diff options
context:
space:
mode:
authorakhilbatra898 <akhil.batra@research.iiit.ac.in>2017-07-15 09:44:23 +0530
committerakhilbatra898 <akhil.batra@research.iiit.ac.in>2017-07-15 09:57:26 +0530
commit0fd661ea6bae299b69e65f90966304012eb794d2 (patch)
tree73bcd903e77fc656863b5241df39f028f8e528f5 /qtip/web/bench/models.py
parent2e4a3dfc8b45ae6dc72aa85510ce920dbafe54ad (diff)
Add Authentication and Basic CRUD for Repos
- Map urls to the CRUD views - Add html templates for the views - Set authentication settings Change-Id: Ifcfe39a8341d44376e322d195e995fcaa1716d7d Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/web/bench/models.py')
-rw-r--r--qtip/web/bench/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtip/web/bench/models.py b/qtip/web/bench/models.py
index 0594dbd9..863af739 100644
--- a/qtip/web/bench/models.py
+++ b/qtip/web/bench/models.py
@@ -11,6 +11,7 @@
from __future__ import unicode_literals
from django.db import models
+from django.urls import reverse
# Create your models here.
@@ -19,6 +20,9 @@ class Repo(models.Model):
name = models.CharField(max_length=200, blank=False)
github_link = models.URLField(unique=True)
+ def get_absolute_url(self):
+ return reverse('repo_update', args=[self.pk])
+
class Task(models.Model):
start_time = models.DateTimeField(auto_now_add=True)