[gen] Minor updates.
This commit is contained in:
		
							parent
							
								
									af7a775570
								
							
						
					
					
						commit
						f91972c21a
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -687,7 +687,7 @@ class Field: | ||||||
|                     # because it can be raised as the result of reindexing |                     # because it can be raised as the result of reindexing | ||||||
|                     # the object in situations that are not foreseen by |                     # the object in situations that are not foreseen by | ||||||
|                     # method in self.default. |                     # method in self.default. | ||||||
|                     return None |                     return | ||||||
|             else: |             else: | ||||||
|                 return self.default |                 return self.default | ||||||
|         return value |         return value | ||||||
|  |  | ||||||
|  | @ -1098,7 +1098,7 @@ class ToolMixin(BaseMixin): | ||||||
|         # Try to authenticate this user |         # Try to authenticate this user | ||||||
|         user = self.authenticate(login, password, request) |         user = self.authenticate(login, password, request) | ||||||
|         emergency = self._emergency_user |         emergency = self._emergency_user | ||||||
|         if emergency and user is emergency: |         if emergency and (user is emergency): | ||||||
|             # It is the emergency user. |             # It is the emergency user. | ||||||
|             return emergency.__of__(self) |             return emergency.__of__(self) | ||||||
|         elif user is None: |         elif user is None: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay