Related
Smills For example, if you take the following model: class Region(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=256)
class Company(models.Model):
id = models.AutoField(primary_key=True)
name = models
Smills For example, if you take the following model: class Region(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=256)
class Company(models.Model):
id = models.AutoField(primary_key=True)
name = models
Smills For example, if you take the following model: class Region(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=256)
class Company(models.Model):
id = models.AutoField(primary_key=True)
name = models
Smills For example, if you take the following model: class Region(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=256)
class Company(models.Model):
id = models.AutoField(primary_key=True)
name = models
Thanos I am working on Django REST framework and I would like to have separate files for logging data. I want a file for simple transactions like GET, PUT, POST, etc, and a file with an error that I will collect if an error occurs. I've been reading the Django
Thanos I am working on Django REST framework and I would like to have separate files for logging data. I want a file for simple transactions like GET, PUT, POST, etc, and a file with an error that I will collect if an error occurs. I've been reading the Django
Thanos I am working on Django REST framework and I would like to have separate files for logging data. I want a file for simple transactions like GET, PUT, POST, etc, and a file with an error that I will collect if an error occurs. I've been reading the Django
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
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
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
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
Nader Besada I am trying to nest my Users table inside the Relationships table. So instead of this: [
{
"user": 1,
"related_user": 2,
"relationship": "followed_by"
}
]
I am trying to get this: [
{
"user": {
André Carvalho I have this model in Django (based on legacy database): class NationalTest(models.Model):
unityId = models.IntegerField(primary_key=True)
parentId = models.IntegerField(blank=True)
grade = models.FloatField(blank=True)
This model s
Nader Besada I am trying to nest my Users table inside the Relationships table. So instead of this: [
{
"user": 1,
"related_user": 2,
"relationship": "followed_by"
}
]
I am trying to get this: [
{
"user": {
SRC I am using DRF for the first time and am stuck in one place. This is just a hypothetical example related to the problem I'm facing: models.py class Manufacturer(models.Model):
manufacturer_id = models.CharField(max_length=25, primary_key=True)
manu
SRC I am using DRF for the first time and am stuck in one place. This is just a hypothetical example related to the problem I'm facing: models.py class Manufacturer(models.Model):
manufacturer_id = models.CharField(max_length=25, primary_key=True)
manu
André Carvalho I have this model in Django (based on legacy database): class NationalTest(models.Model):
unityId = models.IntegerField(primary_key=True)
parentId = models.IntegerField(blank=True)
grade = models.FloatField(blank=True)
This model s
Nader Besada I am trying to nest my Users table inside the Relationships table. So instead of this: [
{
"user": 1,
"related_user": 2,
"relationship": "followed_by"
}
]
I am trying to get this: [
{
"user": {
André Carvalho I have this model in Django (based on legacy database): class NationalTest(models.Model):
unityId = models.IntegerField(primary_key=True)
parentId = models.IntegerField(blank=True)
grade = models.FloatField(blank=True)
This model s
Nader Besada I am trying to nest my Users table inside the Relationships table. So instead of this: [
{
"user": 1,
"related_user": 2,
"relationship": "followed_by"
}
]
I am trying to get this: [
{
"user": {
SRC I am using DRF for the first time and am stuck in one place. This is just a hypothetical example related to the problem I'm facing: models.py class Manufacturer(models.Model):
manufacturer_id = models.CharField(max_length=25, primary_key=True)
manu
André Carvalho I have this model in Django (based on legacy database): class NationalTest(models.Model):
unityId = models.IntegerField(primary_key=True)
parentId = models.IntegerField(blank=True)
grade = models.FloatField(blank=True)
This model s
André Carvalho I have this model in Django (based on legacy database): class NationalTest(models.Model):
unityId = models.IntegerField(primary_key=True)
parentId = models.IntegerField(blank=True)
grade = models.FloatField(blank=True)
This model s
Modesitt I am trying to use django rest framework to generate html forms for model creation. Suppose I have a serializer that belongs to a model with ManyToManyrelations . class SerializerExample(serializers.ModelSerializer):
mtm = ManyToManySerializer(man
Modesitt I am trying to use django rest framework to generate html forms for model creation. Suppose I have a serializer that belongs to a model with ManyToManyrelations . class SerializerExample(serializers.ModelSerializer):
mtm = ManyToManySerializer(man
Octavian I have an HTML form with two buttons. Only show one of the buttons if the variable is true (I'm using React). <form>
{this.state.classificationSelected == true
?
<div>
<ListAddition classification=
Octavian I have an HTML form with two buttons. Only show one of the buttons if the variable is true (I'm using React). <form>
{this.state.classificationSelected == true
?
<div>
<ListAddition classification=
Octavian I have an HTML form with two buttons. Only show one of the buttons if the variable is true (I'm using React). <form>
{this.state.classificationSelected == true
?
<div>
<ListAddition classification=
Aru Is there any way to make Django Rest Framework automatically respond HTTP_400_STATUSwhen there is a database exception ? ( IntegrityErrorand so on) Example: I have a model with a unique username field and I'm trying to use a generic model rest_framework.Li