Commits

Christopher Young committed ecf5817

Adding a print statement to check_if_exists

Comments (0)

Files changed (1)

 
     def _check_if_exists(self, start_time, end_time, date):
         try:
-            TimeSlot.objects.get(start_time=start_time,
-                                 end_time=end_time,
-                                 date=date)
+            t = TimeSlot.objects.get(start_time=start_time,
+                                     end_time=end_time,
+                                     date=date)
+            print "%s already exists!" % t
             return True
         except TimeSlot.DoesNotExist:
             return False