From 0fd661ea6bae299b69e65f90966304012eb794d2 Mon Sep 17 00:00:00 2001 From: akhilbatra898 Date: Sat, 15 Jul 2017 09:44:23 +0530 Subject: 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 --- qtip/web/bench/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtip/web/bench/models.py') 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) -- cgit 1.2.3-korg