-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get related model data in dump_bulk method #221
Labels
Comments
I have the same issue. With the following models: class Customer(models.Model):
email = models.EmailField(unique=True)
class BaseAsset(models.Model):
name = models.CharField(max_length=INLINE_MAX_LENGTH, blank=True, default="")
type = models.CharField(max_length=INLINE_MAX_LENGTH, blank=True, default="")
description = models.TextField(blank=True, default='')
class Asset(MP_Node, BaseAsset):
customer = models.ForeignKey('Customer', null=True, blank=True, on_delete=models.SET_NULL) the [
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 1,
"children": [
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 4,
"children": [
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 6
},
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 7
}
]
},
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 5
}
]
},
{
"data": {
"customer": 1
},
"baseasset_ptr_id": 8
},
{
"data": {
"customer": null
},
"baseasset_ptr_id": 9
}
] |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I have following models:
Issue is, I want to fetch level__order field value in
dump_bulk
method. How can I do this. Please helpThe text was updated successfully, but these errors were encountered: