Update storage model search fields

This commit is contained in:
Tanner Collin 2023-05-29 12:20:07 -06:00
parent 972b9492d8
commit c74922f3cf

View File

@ -293,7 +293,8 @@ class StorageSpace(models.Model):
history = HistoricalRecords() history = HistoricalRecords()
MY_FIELDS = ['shelf_id', 'location', 'user', 'id'] list_display = ['shelf_id', 'location', 'user', 'id']
search_fields = ['shelf_id', 'location', 'user__username', 'id']
def __str__(self): def __str__(self):
return self.shelf_id return self.shelf_id