Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rename urls to use underscores, not dashes

  • Loading branch information...
commit 2e570e9bb48eac77acf4aadab8825c863e42bcc3 1 parent 8327862
snarlygoster authored May 20, 2012
20  templates/timeclock/clockpunchsums.html
@@ -9,16 +9,16 @@
9 9
 </head>
10 10
 <body>
11 11
 
12  
-<table>
13  
-{% for line in work_periods %}
14  
-	<tr>
15  
-		<td>{{ line.ticket }} </td>
16  
-		<td>{{ line.worker }}</td>
17  
-		<td>{{ line.job }}</td>
18  
-		<td>{{ line.duration }}</td>
19  
-	</tr>
20  
-{% endfor %}
21  
-</table>
  12
+  <table>
  13
+  {% for line in work_periods %}
  14
+  <tr>
  15
+    <td>{{ line.ticket }} </td>
  16
+    <td>{{ line.worker }}</td>
  17
+    <td>{{ line.job }}</td>
  18
+    <td>{{ line.duration }}</td>
  19
+  </tr>
  20
+  {% endfor %}
  21
+  </table>
22 22
 
23 23
 </body>
24 24
 </html>
3  timeclock/urls.py
@@ -5,10 +5,11 @@
5 5
 from timeclock.views import ClockPunchView, ClockPunchSums, WorkPeriodView
6 6
 
7 7
 urlpatterns = patterns('',
8  
-    url(r'^$', ClockPunchView.as_view(), name='clockpunch-view'),
  8
+    url(r'^$', ClockPunchView.as_view(), name='clockpunch_view'),
9 9
     url(r'summary', ClockPunchSums.as_view(), name='clockpunchsums'),
10 10
     url(r'workperiods/(?P<workername>\w*)/$', WorkPeriodView.as_view(), name='workperiods'),
11 11
     url(r'workperiods/(?P<workername>\w*)/(?P<startdate>\d{8}/$)', WorkPeriodView.as_view(), name='workperiod_startdate'),
  12
+    url(r'worker/$', WorkerSums.as_view(), name='worker_view'),
12 13
     # Examples:
13 14
     # url(r'^$', 'jobclockproj.views.home', name='home'),
14 15
     # url(r'^jobclockproj/', include('jobclockproj.foo.urls')),
4  timeclock/views.py
@@ -25,9 +25,9 @@ def get_context_data(self, **kwargs):
25 25
     context['last_ten_punches'] = [ {'worker': p.worker.name, 'job' : p.activity.ticket , 'tstamp': p.timestamp} for p in last_ten_punches ]
26 26
     return context
27 27
 
28  
-#  success_url = reverse_lazy('clockpunch-view')
  28
+#  success_url = reverse_lazy('clockpunch_view')
29 29
   def get_success_url(self):
30  
-    return reverse('clockpunch-view')
  30
+    return reverse('clockpunch_view')
31 31
 
32 32
   def form_valid(self,form):
33 33
     form.save()

0 notes on commit 2e570e9

Please sign in to comment.
Something went wrong with that request. Please try again.