Related
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
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
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
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
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
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
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
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
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
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
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
Jeff Tehrani: In Django, I have the following models. class Property(models.Model):
address1 = models.CharField(max_length=512)
address2 = models.CharField(max_length=128, blank=True, null=True)
property_type = models.ForeignKey('PropertyType', mod
aendrew : I have three models - Article, Author and Tweet. I eventually need to use the Django REST Framework to build a feed that aggregates all the objects into a reverse temporal feed using the Article and Tweet models. Any idea what I would do? I feel like
Jeff Tehrani: In Django, I have the following model. class Property(models.Model):
address1 = models.CharField(max_length=512)
address2 = models.CharField(max_length=128, blank=True, null=True)
property_type = models.ForeignKey('PropertyType', mode
Arndru I have three models - Article, Author and Tweet. I eventually need to construct a feed using Django REST Framework that aggregates all objects using the Article and Tweet models into one reverse chronological feed. Any idea what I would do? I feel like
aendrew : I have three models - Article, Author and Tweet. I eventually need to use Django REST Framework to build a feed that aggregates all objects into a reverse temporal feed using Article and Tweet models. Any idea what I would do? I feel like I need to c
aendrew : I have three models - Article, Author and Tweet. I eventually need to use Django REST Framework to build a feed that aggregates all objects into a reverse temporal feed using Article and Tweet models. Any idea what I would do? I feel like I need to c
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
Arndru I have three models - Article, Author and Tweet. I eventually need to construct a feed using Django REST Framework that aggregates all objects using the Article and Tweet models into one reverse chronological feed. Any idea what I would do? I feel like
Maurinostroza I'm new to Python/Django programming and I'm stuck on a personal project I'm working on. My problem is that I want to return custom responses based on different models of my application, some of the values will come from custom queries and others
Maurinostroza I'm new to Python/Django programming and I'm stuck on a personal project I'm working on. My problem is that I want to return custom responses based on different models of my application, some of the values will come from custom queries and others
Maurinostroza I'm new to Python/Django programming and I'm stuck on a personal project I'm working on. My problem is that I want to return custom responses based on different models of my application, some of the values will come from custom queries and others
born I'm a newbie, please don't throw me slippers. The example is degenerate, but... there is a post model with text and owner. Each post is associated with its address, so the coordinates of the post are stored in a separate table. At this stage I can create
Arvin 30790 I am new to this Django rest framework and I am trying to create an API. My model.py looks like this class FieldTypes(models.Model):
field_type = models.CharField(max_length=255, null=False)
deleted = models.BooleanField(default=False)
cla
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
Maurinostroza I'm new to Python/Django programming and I'm stuck on a personal project I'm working on. My problem is that I want to return custom responses based on different models of my application, some of the values will come from custom queries and others