added admin files
authorNishanth Amuluru <nishanth@fossee.in>
Tue, 11 Jan 2011 11:30:14 +0530
changeset 375 40f1ef7a46d8
parent 374 cdd8026ee60e
child 376 5a94c774473c
added admin files
pytask/profile/admin.py
pytask/taskapp/admin.py
pytask/taskapp/models.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/profile/admin.py	Tue Jan 11 11:30:14 2011 +0530
@@ -0,0 +1,5 @@
+from django.contrib import admin
+
+from pytask.profile.models import Profile
+
+admin.site.register(Profile)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/admin.py	Tue Jan 11 11:30:14 2011 +0530
@@ -0,0 +1,13 @@
+from django.contrib import admin
+
+from pytask.taskapp.models import Task, TaskComment, TaskClaim,\
+                                  WorkReport, ReportComment, PyntRequest,\
+                                  TextBook
+
+admin.site.register(Task)
+admin.site.register(TaskComment)
+admin.site.register(TextBook)
+admin.site.register(WorkReport)
+admin.site.register(TaskClaim)
+admin.site.register(ReportComment)
+admin.site.register(PyntRequest)
--- a/pytask/taskapp/models.py	Tue Jan 11 01:03:04 2011 +0530
+++ b/pytask/taskapp/models.py	Tue Jan 11 11:30:14 2011 +0530
@@ -112,7 +112,7 @@
     comment_datetime = models.DateTimeField()
     is_deleted = models.BooleanField(default=False)
 
-class PyntRequests(models.Model):
+class PyntRequest(models.Model):
 
     uniq_key = models.CharField(max_length = 10, unique = True)
     task = models.ForeignKey(Task, related_name = "pynt_requests")