1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #1666: Allow modifying the owner of a rack reservation

This commit is contained in:
Jeremy Stretch
2017-10-31 13:52:35 -04:00
parent 5e734fc5a6
commit b46cc2c1a9
7 changed files with 48 additions and 4 deletions

View File

@ -418,7 +418,7 @@ class RackReservation(models.Model):
rack = models.ForeignKey('Rack', related_name='reservations', on_delete=models.CASCADE)
units = ArrayField(models.PositiveSmallIntegerField())
created = models.DateTimeField(auto_now_add=True)
user = models.ForeignKey(User, editable=False, on_delete=models.PROTECT)
user = models.ForeignKey(User, on_delete=models.PROTECT)
description = models.CharField(max_length=100)
class Meta: