dumpdata --natural-primary --natural-foreign not serializing pointers to parents in multi-table inheritance

2016-09-10 Thread João Sampaio
Hello! I have these classes: class SuperClassManager(models.Manager): def get_by_natural_key(self, identifier): return self.get(identifier=identifier) class SuperClass(models.Model): objects = SuperClassManager() identifier = models.CharField(max_length=31, unique=True)

Re: dumpdata --natural-primary --natural-foreign not serializing pointers to parents in multi-table inheritance

2016-09-10 Thread charettes
Hi João, It seems like this is an already reported bug[1] with an existing stale PR[2] you might want to work on. Cheers, Simon [1] https://code.djangoproject.com/ticket/24607 [2] https://github.com/django/django/pull/4473 Le samedi 10 septembre 2016 10:32:01 UTC-4, João Sampaio a écrit : > >

Re: dumpdata --natural-primary --natural-foreign not serializing pointers to parents in multi-table inheritance

2016-09-10 Thread João Sampaio
Great! I've been wanting to contribute to Django for a long time, so I'll take a shot at this, hopefully I can help. On Sat, Sep 10, 2016 at 11:56 AM, charettes wrote: > Hi João, > > It seems like this is an already reported bug[1] with an existing stale > PR[2] > you might want to work on. > >

Re: dumpdata --natural-primary --natural-foreign not serializing pointers to parents in multi-table inheritance

2016-09-11 Thread João Sampaio
Hello. I just sent a pull request for this bug, you can check it out here: https://github.com/django/django/pull/7231 This is the first pull request I ever sent to a project, so I'm pretty excited. If there's something to fix in the pull request, let me know! There's a test to catch a regr