Closed jheld closed 4 years ago
@paulocheque Can you check into these changes? There isn't much code/library change.
I'm only somewhat familiar with the GDAL dependency, but none of it seems related to these changes.
Hey @jheld , awesome contribution! I kind of get blocked in the same issue and created a simpler solution, but maybe yours focus for another scenarios.
Could you rebase with master and confirm to me if that still makes sense?
Also, duplicate of https://github.com/paulocheque/django-dynamic-fixture/pull/98
@jheld I fixed the GDAL issues locally and in Travis. Thanks!
@jheld I kind of use models.DO_NOTHING
instead of models.CASCADE
in the on_delete
. What do you think?
@paulocheque thanks for working through these and other issues lately. It's great to see that DDF is catching up.
DO_NOTHING is fine. I prefer CASCADE but it's fine.
What of this PR would you still like merged?
@jheld
Do you have any good usage for the CASCADE? I never care about deleting objects in tests with DDF, because it is done automatically via tearDown.
If you think it is worth to make a cascade, we can adapt the PR to submit just that change.
Otherwise, we can close this one.
Thanks again!
@paulocheque It's just my preference. But I think django 2+ requires we specify an on_delete value, so whether it's this PR or not we do need to make a change.
@jheld The on_delete=DO_NOTHING
is already on master
. So I will close this PR for now.
Bugfix around a behavior/code flow change from Django 3.0.
Turns out due to some of the changes around the 2.x and 3.x series if we want to keep general support (and look to the future), we needed more changes around the interpreters, django versions, and the test setup/assertions. Nothing tremendous -- so long as the tests end up passing, I think beyond it being a version update we should be fine with this.
Currently failing around GDAL installation issues.