mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Cast all query param values to string
This commit is contained in:
		@@ -142,9 +142,9 @@ class APISelect(SelectWithDisabled):
 | 
			
		||||
 | 
			
		||||
        values = json.loads(self.attrs.get(key, '[]'))
 | 
			
		||||
        if type(value) is list:
 | 
			
		||||
            values.extend(value)
 | 
			
		||||
            values.extend([str(v) for v in value])
 | 
			
		||||
        else:
 | 
			
		||||
            values.append(value)
 | 
			
		||||
            values.append(str(value))
 | 
			
		||||
 | 
			
		||||
        self.attrs[key] = json.dumps(values)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user