Related
tomoc4 I'm trying to create a combined viewset that displays data in a nested format of three nested models. I got an error when trying to return to the viewset. Got AttributeError when attempting to get a value for field `runner` on serializer `CombinedSerial
tomoc4 I'm trying to create a combined viewset that displays data in a nested format of three nested models. I got an error when trying to return to the viewset. Got AttributeError when attempting to get a value for field `runner` on serializer `CombinedSerial
tomoc4 I'm trying to create a combined viewset that displays data in a nested format of three nested models. I got an error when trying to return to the viewset. Got AttributeError when attempting to get a value for field `runner` on serializer `CombinedSerial
tomoc4 I'm trying to create a combined viewset that displays data in a nested format of three nested models. I got an error when trying to return to the viewset. Got AttributeError when attempting to get a value for field `runner` on serializer `CombinedSerial
Momokjaaaaa This is django and django rest framework. I have 2 models: User and Phone. first question: I want to be able to update user data (email) as well as phone data (phone number) in 1 api update response. Phone numbers can be 0 or many. Well, it's actua
Momokjaaaaa This is django and django rest framework. I have 2 models: User and Phone. first question: I want to be able to update user data (email) as well as phone data (phone number) in 1 api update response. Phone numbers can be 0 or many. Well, it's actua
Momokjaaaaa This is django and django rest framework. I have 2 models: User and Phone. first question: I want to be able to update user data (email) as well as phone data (phone number) in 1 api update response. Phone numbers can be 0 or many. Well, it's actua
Momokjaaaaa This is django and django rest framework. I have 2 models: User and Phone. first question: I want to be able to update user data (email) as well as phone data (phone number) in 1 api update response. Phone numbers can be 0 or many. Well, it's actua
Momokjaaaaa This is django and django rest framework. I have 2 models: User and Phone. first question: I want to be able to update user data (email) as well as phone data (phone number) in 1 api update response. Phone numbers can be 0 or many. Well, it's actua
Coderaemon: I am using Django Rest Framework . I want to serialize multiple models and send as response. Currently, only one model can be sent per view (as CartViewshown below, only Cart objects are sent). The following models (unrelated) can be there. class S
Coderaemon: I am using Django Rest Framework . I want to serialize multiple models and send as response. Currently, only one model can be sent per view (as CartViewshown below, only Cart objects are sent). The following models (unrelated) can be there. class S
Coderaemon I am using Django Rest Framework . I want to serialize multiple models and send as response. Currently I can only send one model per view (as CartViewbelow, only the Cart object). The following models (unrelated) can be there. class Ship_address(mod
Coderaemon: I am using Django Rest Framework . I want to serialize multiple models and send as response. Currently, only one model can be sent per view (as CartViewshown below, only Cart objects are sent). The following models (unrelated) can be there. class S
bdex I'm having trouble serializing an intermediate "pivot" model and attaching it to each item in a "many-to-many" relationship in Django Rest Framework. example: models.py: class Member(models.Model):
name = models.CharField(max_length = 20)
groups =
bdex I'm having trouble serializing an intermediate "pivot" model and attaching it to each item in a "many-to-many" relationship in Django Rest Framework. example: models.py: class Member(models.Model):
name = models.CharField(max_length = 20)
groups =
bdex I'm having trouble serializing an intermediate "pivot" model and attaching it to each item in a "many-to-many" relationship in Django Rest Framework. example: models.py: class Member(models.Model):
name = models.CharField(max_length = 20)
groups =
Ben2pop I'm very new to using REST frameworks and I didn't find in tutorials how to achieve what I'm looking for; In my serialiser.py I have a class for serializing MyUser model class MyUserSerializer(ModelSerializer):
class Meta:
model = MyUser
DjangoNoob I have 3 tables PC(ID, PcNAME, Brand) , CellPhoness(ID, CellPhoneName, Brand) , Printers(ID, PrinterName, Brand) . There is no relationship between these three tables. I want to run a query where the user can enter a search string and the program wi
collet I'm starting to use Django Rest Framework and it's a great tool! Actually, I'm stuck in some simple puzzles, but have no way of figuring out how to do it...I have two models, CustomUser and Order. Here, CustomUser has 0 to many orders. I want to generat
DjangoNoob I have 3 tables PC(ID, PcNAME, Brand) , CellPhoness(ID, CellPhoneName, Brand) , Printers(ID, PrinterName, Brand) . There is no relationship between these three tables. I want to run a query where the user can enter a search string and the program wi
Facebook facebook Rahul Nama to contact I am creating a REST API using DRF (Django Rest Framework). The API just takes the user's twitter handle and returns their twitter data. Here, I'm not using a model here because it's not required. Should I be using a ser
Facebook facebook Rahul Nama to contact I am creating a REST API using DRF (Django Rest Framework). The API just takes the user's twitter handle and returns their twitter data. Here, I'm not using a model here because it's not required. Should I be using a ser
Danny I'm trying to implement multiple nested writable serializers using django rest framework. I have read the documentation available http://www.django-rest-framework.org/api-guide/serializers/#writable-nested-representations I've been able to do this for on
Danny I'm trying to implement multiple nested writable serializers using django rest framework. I have read the documentation available http://www.django-rest-framework.org/api-guide/serializers/#writable-nested-representations I've been able to do this for on
Danny I'm trying to implement multiple nested writable serializers using django rest framework. I have read the documentation available http://www.django-rest-framework.org/api-guide/serializers/#writable-nested-representations I've been able to do this for on
Jononomo I want to do the following: models.py class Container(models.Model):
size = models.CharField(max_length=20)
shape = models.CharField(max_length=20)
class Item(models.Model):
container = models.ForeignKey(Container)
name = models.Cha
Jononomo I want to do the following: models.py class Container(models.Model):
size = models.CharField(max_length=20)
shape = models.CharField(max_length=20)
class Item(models.Model):
container = models.ForeignKey(Container)
name = models.Cha
Danny I'm trying to implement multiple nested writable serializers using django rest framework. I have read the documentation available http://www.django-rest-framework.org/api-guide/serializers/#writable-nested-representations I've been able to do this for on
Jononomo I want to do the following: models.py class Container(models.Model):
size = models.CharField(max_length=20)
shape = models.CharField(max_length=20)
class Item(models.Model):
container = models.ForeignKey(Container)
name = models.Cha