mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-31 19:49:02 +01:00 
			
		
		
		
	A bugfix, again, for the same piece of code (sorry)
forget to name the argument
This commit is contained in:
		
					parent
					
						
							
								2ba728da7d
							
						
					
				
			
			
				commit
				
					
						548320e6d3
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -47,7 +47,8 @@ def admin_update(request): | |||
|         leo = target_leo.get_from_uid(datas['lodel_id']) | ||||
|         if leo is None: | ||||
|             raise HttpException(404, | ||||
|                 'No %s with id %s' % (target_leo.__name__, datas['lodel_id'])) | ||||
|                 custom = 'No %s with id %s' % ( | ||||
|                     target_leo.__name__, datas['lodel_id'])) | ||||
|         try: | ||||
|             leo.update( | ||||
|                 { f:datas[f] for f in datas if f not in ('classname', 'lodel_id')}) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yann
				Yann