You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
field=models.CharField(choices=[('OK', 'OK'), ('DAMAGED', 'Damaged')], default='OK', help_text='The condition of the item upon return.', max_length=10),
help_text="The condition of the item upon return."
284
+
)
274
285
275
286
def__str__(self):
276
-
returnf"{self.quantity_returned} units of {self.checkout_log.item.name} returned on {self.return_date.strftime('%Y-%m-%d')}"
287
+
returnf"{self.quantity_returned} units of {self.checkout_log.item.name} returned on {self.return_date.strftime('%Y-%m-%d')} (Condition: {self.get_condition_display()})"
277
288
278
289
classItemLog(models.Model):
279
290
"""A permanent record of a change in an item's stock quantity."""
0 commit comments