mirror of
				https://github.com/Tivix/django-rest-auth.git
				synced 2025-10-30 23:37:32 +03:00 
			
		
		
		
	Return pk in /rest-auth/user/ instead of id
				
					
				
			This commit is contained in:
		
							parent
							
								
									e662736e4a
								
							
						
					
					
						commit
						35fe1ae590
					
				|  | @ -126,7 +126,7 @@ class UserDetailsSerializer(serializers.ModelSerializer): | |||
|     """ | ||||
|     class Meta: | ||||
|         model = UserModel | ||||
|         fields = ('id', 'username', 'email', 'first_name', 'last_name') | ||||
|         fields = ('pk', 'username', 'email', 'first_name', 'last_name') | ||||
|         read_only_fields = ('email', ) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user