aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-02-19 21:26:05 -0500
committerMike Crute <mcrute@gmail.com>2010-02-19 21:26:05 -0500
commiteafc81114c0e0d559af4bc2f40b56af37d984740 (patch)
tree408db318a8dc93a18e1c1a30237119fd334314d0
parent93513c6b3c3af3bb56b8b9eebf967ffc661f9f60 (diff)
downloadsnakeplan-eafc81114c0e0d559af4bc2f40b56af37d984740.tar.bz2
snakeplan-eafc81114c0e0d559af4bc2f40b56af37d984740.tar.xz
snakeplan-eafc81114c0e0d559af4bc2f40b56af37d984740.zip
Cleaning out the useless admin stuff.
-rw-r--r--snakeplan/projects/admin.py34
-rwxr-xr-xsnakeplan/projects/models.py15
2 files changed, 20 insertions, 29 deletions
diff --git a/snakeplan/projects/admin.py b/snakeplan/projects/admin.py
index bdfbbd3..7471356 100644
--- a/snakeplan/projects/admin.py
+++ b/snakeplan/projects/admin.py
@@ -1,32 +1,8 @@
1from snakeplan.projects import models 1from snakeplan.projects import models
2from django.contrib import admin 2from django.contrib import admin
3 3
4 4admin.site.register(models.Task)
5class ProjectAdmin(admin.ModelAdmin): 5admin.site.register(models.Story)
6 pass 6admin.site.register(models.Project)
7 7admin.site.register(models.Iteration)
8admin.site.register(models.Project, ProjectAdmin) 8admin.site.register(models.LoggedTime)
9
10
11class IterationAdmin(admin.ModelAdmin):
12 pass
13
14admin.site.register(models.Iteration, IterationAdmin)
15
16
17class StoryAdmin(admin.ModelAdmin):
18 pass
19
20admin.site.register(models.Story, StoryAdmin)
21
22
23class TaskAdmin(admin.ModelAdmin):
24 pass
25
26admin.site.register(models.Task, TaskAdmin)
27
28
29class LoggedTimeAdmin(admin.ModelAdmin):
30 pass
31
32admin.site.register(models.LoggedTime, LoggedTimeAdmin)
diff --git a/snakeplan/projects/models.py b/snakeplan/projects/models.py
index d02402e..b91ec7c 100755
--- a/snakeplan/projects/models.py
+++ b/snakeplan/projects/models.py
@@ -32,6 +32,9 @@ class Project(Model):
32 hidden = m.BooleanField(default=False) 32 hidden = m.BooleanField(default=False)
33 wiki_link = m.URLField(blank=True) 33 wiki_link = m.URLField(blank=True)
34 34
35 def __unicode__(self):
36 return self.name
37
35 38
36class Iteration(Model): 39class Iteration(Model):
37 40
@@ -43,6 +46,9 @@ class Iteration(Model):
43 days_worked = m.DecimalField(default=0, decimal_places=2, max_digits=5) 46 days_worked = m.DecimalField(default=0, decimal_places=2, max_digits=5)
44 description = m.TextField(blank=True) 47 description = m.TextField(blank=True)
45 48
49 def __unicode__(self):
50 return self.name
51
46 52
47class Story(Model): 53class Story(Model):
48 54
@@ -57,6 +63,9 @@ class Story(Model):
57 order = m.IntegerField() 63 order = m.IntegerField()
58 description = m.TextField(blank=True) 64 description = m.TextField(blank=True)
59 65
66 def __unicode__(self):
67 return self.name
68
60 69
61class Task(Model): 70class Task(Model):
62 71
@@ -68,6 +77,9 @@ class Task(Model):
68 estimated_hours = m.DecimalField(decimal_places=2, max_digits=5) 77 estimated_hours = m.DecimalField(decimal_places=2, max_digits=5)
69 description = m.TextField(blank=True) 78 description = m.TextField(blank=True)
70 79
80 def __unicode__(self):
81 return self.name
82
71 83
72class LoggedTime(Model): 84class LoggedTime(Model):
73 85
@@ -78,3 +90,6 @@ class LoggedTime(Model):
78 person1 = m.ForeignKey(User, blank=True, related_name="person1") 90 person1 = m.ForeignKey(User, blank=True, related_name="person1")
79 person2 = m.ForeignKey(User, blank=True, related_name="person2") 91 person2 = m.ForeignKey(User, blank=True, related_name="person2")
80 description = m.TextField(blank=True) 92 description = m.TextField(blank=True)
93
94 def __unicode__(self):
95 return self.description