Skip to content

Commit

Permalink
Upgrade django-polymorphic
Browse files Browse the repository at this point in the history
I'm not in the habit of testing the admin interface, so I don't know what things
_were_ like. But after this change, it's impossible to delete a workflow from the
admin interface. Probably related to
jazzband/django-polymorphic#229 which was never
fixed; our workaround for it stopped working (and I'm keen to delete that workaround
anyway, because we veered way into jank-ville here).
  • Loading branch information
adamhooper committed May 3, 2019
1 parent 8fdc751 commit 803f4d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ aiohttp = "==3.5.4"
channels = "==2.2.0"
Django = "==1.11.20"
"django-allauth" = "==0.37.0"
"django-polymorphic" = "==1.3"
django-polymorphic = "~=2.0.3"
djangorestframework = "~=3.9.3"
"django-user-accounts" = "==2.1.0"
"django-webpack-loader" = "==0.6.0"
Expand Down
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions server/models/Delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ def _prepare_json(data: Any) -> Any:
# When creating a Delta, the two commands will be called in the same atomic
# transaction.
class Delta(PolymorphicModel):
class Meta:
# OMG this bug ate so many hours...
# https://github.com/django-polymorphic/django-polymorphic/issues/229
base_manager_name = 'base_objects'

# These fields must be set by any child classes, when instantiating
workflow = models.ForeignKey('Workflow', related_name='deltas',
on_delete=models.CASCADE)
Expand Down

0 comments on commit 803f4d0

Please sign in to comment.