-
-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Environment: Django 3.0.6
In my case the app does not follow relations when exporting data with dump_object
Simplified models:
class Member(BaseModel):
email = models.EmailField(unique=True)
class Subscription(BaseModel):
member = models.ForeignKey(Member, on_delete=models.CASCADE)
When I execute python manage.py dump_object members.member --query '{"pk__in": [1]} for a Member with several Subscriptions I only get the Member model dumped:
[
{
"model": "accounts.member",
"pk": 1,
"fields": {
"email": "[email protected]",
}
}
]
lucemia, samirelanduk, viktor-yunenko and maingoh
Metadata
Metadata
Assignees
Labels
No labels