|
@@ -23,7 +23,7 @@ class Item(models.Model):
|
|
|
designation = models.CharField(max_length=100, verbose_name='désignation')
|
|
|
mac_address = MACAddressField(verbose_name='addresse MAC', blank=True,
|
|
|
null=True)
|
|
|
- buy_date = models.DateTimeField(verbose_name='date d’achat')
|
|
|
+ buy_date = models.DateField(verbose_name='date d’achat')
|
|
|
user_in_charge = models.ForeignKey(settings.AUTH_USER_MODEL,
|
|
|
verbose_name='membre responsable',
|
|
|
related_name='items')
|
|
@@ -61,9 +61,9 @@ class Loan(models.Model):
|
|
|
item = models.ForeignKey(Item, verbose_name='objet', related_name='loans')
|
|
|
user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name='membre',
|
|
|
related_name='loans')
|
|
|
- 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)
|
|
|
+ loan_date = models.DateField(verbose_name='date de prêt')
|
|
|
+ loan_date_end = models.DateField(verbose_name='date de fin de prêt',
|
|
|
+ null=True, blank=True)
|
|
|
location = models.CharField(max_length=100, verbose_name='emplacement',
|
|
|
null=True, blank=True)
|
|
|
|