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

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

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

Loading…
Cancel
Save