Parcourir la source

Merge pull request #3128 from solarissmoke/feature/21-release-notes

Add stub release notes for 2.1, and document changes in #3017.
master
Samir Shah il y a 5 ans
Parent
révision
ab4bca07e5
Aucun compte lié à l'adresse e-mail de l'auteur
2 fichiers modifiés avec 45 ajouts et 3 suppressions
  1. 42
    0
      docs/source/releases/v2.1.rst
  2. 3
    3
      src/oscar/apps/offer/abstract_models.py

+ 42
- 0
docs/source/releases/v2.1.rst Voir le fichier

@@ -0,0 +1,42 @@
1
+=======================
2
+Oscar 2.1 release notes (in development)
3
+=======================
4
+
5
+:release: tbd
6
+
7
+Welcome to Oscar 2.1.
8
+
9
+.. contents::
10
+    :local:
11
+    :depth: 1
12
+
13
+.. _compatibility_of_2.1:
14
+
15
+Compatibility
16
+~~~~~~~~~~~~~
17
+
18
+
19
+.. _new_in_2.1:
20
+
21
+What's new in Oscar 2.1?
22
+~~~~~~~~~~~~~~~~~~~~~~~~
23
+
24
+- The database performance of ``offer.Range.all_products()`` was substantially
25
+  improved. The internals of that method have changed and specifically
26
+  ``Range.invalidate_cached_ids()`` has been removed and replaced with
27
+  ``Range.invalidate_cached_queryset()``.
28
+
29
+
30
+Removal of deprecated features
31
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
+
33
+
34
+Dependency changes
35
+~~~~~~~~~~~~~~~~~~
36
+
37
+
38
+
39
+.. _deprecated_features_in_2.1:
40
+
41
+Deprecated features
42
+~~~~~~~~~~~~~~~~~~

+ 3
- 3
src/oscar/apps/offer/abstract_models.py Voir le fichier

@@ -32,7 +32,7 @@ load_proxy, unit_price = get_classes('offer.utils', ['load_proxy', 'unit_price']
32 32
 class ReverseStartsWith(StartsWith):
33 33
     """
34 34
     Adds a new lookup method to the django query language, that allows the
35
-    folowing syntax::
35
+    following syntax::
36 36
 
37 37
         henk_rstartswith="koe"
38 38
 
@@ -53,12 +53,12 @@ class ReverseStartsWith(StartsWith):
53 53
     based on that their depth starts with the depth string of the parent.
54 54
     """
55 55
     def process_rhs(self, compiler, connection):
56
-        return super(ReverseStartsWith, self).process_lhs(compiler, connection)
56
+        return super().process_lhs(compiler, connection)
57 57
 
58 58
     def process_lhs(self, compiler, connection, lhs=None):
59 59
         if lhs is not None:
60 60
             raise Exception("Flipped process_lhs does not accept lhs argument")
61
-        return super(ReverseStartsWith, self).process_rhs(compiler, connection)
61
+        return super().process_rhs(compiler, connection)
62 62
 
63 63
 
64 64
 Field.register_lookup(ReverseStartsWith, "rstartswith")

Chargement…
Annuler
Enregistrer