diff options
author | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-13 08:04:17 +0530 |
---|---|---|
committer | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-13 08:19:56 +0530 |
commit | 2e4a3dfc8b45ae6dc72aa85510ce920dbafe54ad (patch) | |
tree | 35b3060607141c93195dbecd4373f2b99b3355cd /qtip/web/bench/admin.py | |
parent | 80c314359380e4bf568486080e60ae0aaa25d507 (diff) |
Define Database models
- Add dbfile to gitignore
- Add models Repo and Task
- Register models for Django Admin
Change-Id: I46f23b0cb4deba2efc874cceb93251010ebb2860
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/web/bench/admin.py')
-rw-r--r-- | qtip/web/bench/admin.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/qtip/web/bench/admin.py b/qtip/web/bench/admin.py index a3846a1b..1e678ad5 100644 --- a/qtip/web/bench/admin.py +++ b/qtip/web/bench/admin.py @@ -1,6 +1,22 @@ +############################################################################## +# Copyright (c) 2017 akhil.batra@research.iiit.ac.in and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + # -*- coding: utf-8 -*- + from __future__ import unicode_literals -# from django.contrib import admin +from django.contrib import admin + +import models # Register your models here. + + +admin.site.register(models.Repo) +admin.site.register(models.Task) |