Related
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
gegetinib For example, let's use these 3 simple models. A city can have multiple stores, and a store can have multiple products models.py class City(models.Model):
name=models.CharField(max_length=300)
class Shop(models.Model):
name = models.CharField
Joseph Kerber I'm trying to add customizations to me in Django2 using . The problem is that my serializer doesn't serialize the nested model, so it gives me the error:actionViewSetdjango-rest-framework {
"labels": [
{
"non_field_errors"
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
Waldemar Edward Sandel Rolfson Given two different models, they have the same parent base class. Is it possible to serialize a linked list containing instances of two child models using the Django Rest Framework serializer or serpy? Given some example models:
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
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
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
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
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
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
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
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
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
Nick S. I am trying to create writable nested serializers. My parent model is Game and the nested model is Measurements. I am trying to post this data into my DRF application using AJAX. However, when trying to post the data, the nested Measurements is an empt
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
Thanh Nguyen I have the following model definition: class Workflow(models.Model):
name = models.CharField(max_length=255)
class Step(models.Model):
workflow = models.ForeignKey(Section, on_delete=models.CASCADE, related_name='steps')
title = model
CH Andre Meloa I have some questions about Django nested models. As far as I know, to handle nested data structures, I have to deserialize each data and then create objects that will be concatenated with the ForeignKeyField. I can handle this by overriding the
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
Thanh Nguyen I have the following model definition: class Workflow(models.Model):
name = models.CharField(max_length=255)
class Step(models.Model):
workflow = models.ForeignKey(Section, on_delete=models.CASCADE, related_name='steps')
title = model