Update storage model search fields
This commit is contained in:
parent
972b9492d8
commit
c74922f3cf
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user