fix
This commit is contained in:
parent
2333e7be72
commit
66f21a4c8e
@ -48,9 +48,9 @@ def update_object(request):
|
||||
object_list = Equipment.objects.filter(my_filter).all()
|
||||
m_list = []
|
||||
for obj in object_list:
|
||||
type_g = obj.model
|
||||
type_g = obj.model.strip()
|
||||
icon = ""
|
||||
icon_obj = ModelTypeIcons.objects.filter(model=type_g).last()
|
||||
icon_obj = ModelTypeIcons.objects.filter(model=type_g).first()
|
||||
if icon_obj is not None:
|
||||
icon = "/" + icon_obj.path
|
||||
m_list.append({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user