Commit 3712b6ed authored by jocelyn's avatar jocelyn

Démarrer par défaut les emprunts à la date+heure courante

Ref #189
parent 6c25ff36
......@@ -151,7 +151,9 @@ class Loan(models.Model):
user = models.ForeignKey(
settings.AUTH_USER_MODEL, verbose_name='membre',
related_name='loans', null=True, on_delete=models.SET_NULL)
loan_date = models.DateTimeField(verbose_name='date de prêt')
loan_date = models.DateTimeField(
verbose_name='date de prêt',
loan_date_end = models.DateTimeField(verbose_name='date de fin de prêt',
null=True, blank=True)
notes = models.TextField(null=True, blank=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment