Browse Source

Revert "Pin treebeard dependency to <4.5" (#3935)

* Revert "Pin treebeard dependency to <4.5"

This reverts commit e37df74d77.

* Fix bug with dashboard redirect when upgrading to treebeard>=4.5
master
Craig Weber 3 years ago
parent
commit
d5387656fe
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      setup.py
  2. 1
    1
      src/oscar/apps/dashboard/catalogue/views.py

+ 1
- 1
setup.py View File

@@ -26,7 +26,7 @@ install_requires = [
26 26
     # Search support
27 27
     'django-haystack>=3.0b1',
28 28
     # Treebeard is used for categories
29
-    'django-treebeard>=4.3,<4.5',
29
+    'django-treebeard>=4.3.0',
30 30
     # Babel is used for currency formatting
31 31
     'Babel>=1.0,<3.0',
32 32
     # For manipulating search URLs

+ 1
- 1
src/oscar/apps/dashboard/catalogue/views.py View File

@@ -570,7 +570,7 @@ class CategoryDetailListView(SingleTableMixin, generic.DetailView):
570 570
 class CategoryListMixin(object):
571 571
 
572 572
     def get_success_url(self):
573
-        parent = self.object.get_parent()
573
+        parent = self.object.get_parent(update=True)
574 574
         if parent is None:
575 575
             return reverse("dashboard:catalogue-category-list")
576 576
         else:

Loading…
Cancel
Save