mirror of https://github.com/pallets/flask.git
				
				
				
			Fix index example for TaggedJSONSerializer.register()
Made the example use a keyword, rather than a positional argument, as the intent here is to show how to insert a tag with higher precedence. As a positional argument, this would have been passed to ``force`` instead of ``index``.
This commit is contained in:
		
							parent
							
								
									fc6a1d9354
								
							
						
					
					
						commit
						eaedb9320c
					
				|  | @ -36,7 +36,7 @@ processes dicts first, so insert the new tag at the front of the order since | |||
|         def to_python(self, value): | ||||
|             return OrderedDict(value) | ||||
| 
 | ||||
|     app.session_interface.serializer.register(TagOrderedDict, 0) | ||||
|     app.session_interface.serializer.register(TagOrderedDict, index=0) | ||||
| 
 | ||||
| :copyright: © 2010 by the Pallets team. | ||||
| :license: BSD, see LICENSE for more details. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue