David Ray hace 7 años
padre
commit
de9cddd1fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bakerydemo/locations/models.py

+ 1 - 1
bakerydemo/locations/models.py

@@ -56,7 +56,7 @@ class OperatingHours(models.Model):
         else:
             opening = '--'
         if self.closing_time:
-            closed = self.opening_time.strftime('%H:%M')
+            closed = self.closing_time.strftime('%H:%M')
         else:
             closed = '--'
         return '{}: {} - {} {}'.format(