Updating models with unique fields in Django Rest Framework

2020-09-28 Thread Pradyum Gupta
Can one solve this issue https://stackoverflow.com/q/64099264/7999665 Regards -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to

duplicate key value violates unique constraint django rest framework

2020-09-27 Thread Pradyum Gupta
I have *App named Company* and in *models.py* there is a model named *CompanyProfile* models.py ```python class CompanyProfile(models.Model): id = models.UUIDField(default=uuid.uuid4, editable=False,

Re: ListCreateAPIView Django rest framework Method \"POST\" not allowed

2020-09-26 Thread Pradyum Gupta
egards, > Xavier O. > Le 25 sept. 2020 à 13:48 +0200, Pradyum Gupta , a > écrit : > > See I don't know this is actually a very weird error that am receiving. > > > > Inside *Company App* > > > > views.py > > ```python3 > > class CompanyView

ListCreateAPIView Django rest framework Method \"POST\" not allowed

2020-09-25 Thread Pradyum Gupta
See I don't know this is actually a very weird error that am receiving. Inside *Company App* views.py ```python3 class CompanyView(generics.ListCreateAPIView): queryset = CompanyProfile.objects.all() serializer_class = RegisterationCompanySerializer permission_classes =

Re: Digest for django-rest-framework@googlegroups.com - 3 updates in 2 topics

2020-09-24 Thread Pradyum Gupta
ey <http://groups.google.com/group/django-rest-framework/t/16b95088fdd6bda2?utm_source=digest_medium=email> Pradyum Gupta : Sep 24 09:00AM In My Django Project, there are two apps: Login and Company The **error that am receiving** in this is ```python AttributeError: module 'login

Attribute Error in Django model Foreign Key

2020-09-24 Thread Pradyum Gupta
In My Django Project, there are two apps: Login and Company The **error that am receiving** in this is ```python AttributeError: module 'login.models' has no attribute 'Country' ``` *Company App* > models.py ```python from django.db import models from login import models as LM class

Create an invitation link using django rest framework?

2020-09-21 Thread Pradyum Gupta
am looking for some advice/Mentorship. wanted to create an *invitation link for onboarding user to a company* similarly slack does by sending company employees email so that they could directly join the company but using the Django rest framework is there any method that you can refer? see