Hotfix: EcoAccount serializable
* fixes bug where EcoAccount model was not serializable due to changes in newer DAL version due to Django4
This commit is contained in:
		
							parent
							
								
									fb67e42078
								
							
						
					
					
						commit
						a0823814c5
					
				@ -32,3 +32,9 @@ class EcoAccountAutocomplete(Select2QuerySetView):
 | 
			
		||||
                Q(title__icontains=self.q)
 | 
			
		||||
            ).distinct()
 | 
			
		||||
        return qs
 | 
			
		||||
 | 
			
		||||
    def get_result_label(self, result):
 | 
			
		||||
        return str(result)
 | 
			
		||||
 | 
			
		||||
    def get_selected_result_label(self, result):
 | 
			
		||||
        return str(result)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user