Re: anyone solve this problem

2021-01-08 Thread Praveen chaduvala
Thank you for your response. I got the answer in someone's tutorial. On Fri, Jan 8, 2021, 6:26 PM Xavier Ordoquy wrote: > Hi, > > The Django REST Framework tutorial, step6 should show you how to do that. > The SnippetViewSet uses the SnippetSerializer to set the current user as > the owner of

Why make a query before create when unique=True?

2021-01-08 Thread Barış Sermet
Hi there! I have User model and serializer class which represents it. *class User(models.Model):* *username = models.CharField(unique=True, max_length=50)* *is_admin = models.BooleanField(default=False)* *class CreateUserSerializer(serializers.ModelSerializer):* * class Meta:* *

Re: anyone solve this problem

2021-01-08 Thread Xavier Ordoquy
Hi, The Django REST Framework tutorial, step6 should show you how to do that. The SnippetViewSet uses the SnippetSerializer to set the current user as the owner of the snippet created. Regards, Linovia, Xavier O. > Le 8 janv. 2021 à 12:43, Praveen chaduvala a écrit : > > django - how to add

anyone solve this problem

2021-01-08 Thread Praveen chaduvala
django - how to add current active user as foreign key to the create post model in djangorestframework? - Stack Overflow -- You received this message because you

Migration to LDAP authentication

2021-01-08 Thread Shaharyar Shamshi
Hello everyone first of all thank you for looking into the message actually As of now we are using token authentication in DRF one of our client has asked for the LDAP authentication can anyone help me understanding which will be better approach and also how can I migrate to LDAP from token