mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Fixed #21730 -- Removed superfluous db_index in custom auth docs
Thanks rafalp for the report.
This commit is contained in:
		
							parent
							
								
									4d27d311f6
								
							
						
					
					
						commit
						c717ebbfec
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -477,7 +477,7 @@ password resets. You must then provide some key implementation details:
 | 
				
			||||||
        as the identifying field::
 | 
					        as the identifying field::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            class MyUser(AbstractBaseUser):
 | 
					            class MyUser(AbstractBaseUser):
 | 
				
			||||||
                identifier = models.CharField(max_length=40, unique=True, db_index=True)
 | 
					                identifier = models.CharField(max_length=40, unique=True)
 | 
				
			||||||
                ...
 | 
					                ...
 | 
				
			||||||
                USERNAME_FIELD = 'identifier'
 | 
					                USERNAME_FIELD = 'identifier'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -965,7 +965,6 @@ authentication app::
 | 
				
			||||||
            verbose_name='email address',
 | 
					            verbose_name='email address',
 | 
				
			||||||
            max_length=255,
 | 
					            max_length=255,
 | 
				
			||||||
            unique=True,
 | 
					            unique=True,
 | 
				
			||||||
            db_index=True,
 | 
					 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        date_of_birth = models.DateField()
 | 
					        date_of_birth = models.DateField()
 | 
				
			||||||
        is_active = models.BooleanField(default=True)
 | 
					        is_active = models.BooleanField(default=True)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue