richie 3.1.3.dev27__py2.py3-none-any.whl → 3.1.3.dev28__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of richie might be problematic. Click here for more details.
- richie/apps/courses/factories.py +6 -0
- richie/apps/search/indexers/courses.py +25 -2
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/METADATA +1 -1
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/RECORD +8 -8
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/WHEEL +0 -0
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/licenses/LICENSE +0 -0
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/top_level.txt +0 -0
- {richie-3.1.3.dev27.dist-info → richie-3.1.3.dev28.dist-info}/zip-safe +0 -0
richie/apps/courses/factories.py
CHANGED
|
@@ -451,6 +451,12 @@ class CourseRunFactory(factory.django.DjangoModelFactory):
|
|
|
451
451
|
certificate_price = factory.Faker(
|
|
452
452
|
"pydecimal", min_value=50, max_value=200, left_digits=5, right_digits=2
|
|
453
453
|
)
|
|
454
|
+
discounted_price = factory.Faker(
|
|
455
|
+
"pydecimal", min_value=10, max_value=100, left_digits=5, right_digits=2
|
|
456
|
+
)
|
|
457
|
+
certificate_discounted_price = factory.Faker(
|
|
458
|
+
"pydecimal", min_value=10, max_value=40, left_digits=5, right_digits=2
|
|
459
|
+
)
|
|
454
460
|
|
|
455
461
|
# pylint: disable=no-self-use
|
|
456
462
|
@factory.lazy_attribute
|
|
@@ -185,8 +185,12 @@ class CoursesIndexer:
|
|
|
185
185
|
"offer": {"type": "keyword"},
|
|
186
186
|
"price": {"type": "keyword"},
|
|
187
187
|
"price_currency": {"type": "keyword"},
|
|
188
|
+
"discounted_price": {"type": "keyword"},
|
|
189
|
+
"discount": {"type": "keyword"},
|
|
188
190
|
"certificate_price": {"type": "keyword"},
|
|
189
191
|
"certificate_offer": {"type": "keyword"},
|
|
192
|
+
"certificate_discounted_price": {"type": "keyword"},
|
|
193
|
+
"certificate_discount": {"type": "keyword"},
|
|
190
194
|
},
|
|
191
195
|
},
|
|
192
196
|
# Keywords
|
|
@@ -475,7 +479,14 @@ class CoursesIndexer:
|
|
|
475
479
|
params._source.course_runs[best_index]['certificate_price'],
|
|
476
480
|
'offer': params._source.course_runs[best_index]['offer'],
|
|
477
481
|
'price': params._source.course_runs[best_index]['price'],
|
|
478
|
-
'price_currency': params._source.course_runs[best_index]['price_currency']
|
|
482
|
+
'price_currency': params._source.course_runs[best_index]['price_currency'],
|
|
483
|
+
'discounted_price':
|
|
484
|
+
params._source.course_runs[best_index]['discounted_price'],
|
|
485
|
+
'discount': params._source.course_runs[best_index]['discount'],
|
|
486
|
+
'certificate_discounted_price':
|
|
487
|
+
params._source.course_runs[best_index]['certificate_discounted_price'],
|
|
488
|
+
'certificate_discount':
|
|
489
|
+
params._source.course_runs[best_index]['certificate_discount']
|
|
479
490
|
];
|
|
480
491
|
} else {
|
|
481
492
|
return [
|
|
@@ -483,7 +494,11 @@ class CoursesIndexer:
|
|
|
483
494
|
'certificate_price': null,
|
|
484
495
|
'offer': null,
|
|
485
496
|
'price': null,
|
|
486
|
-
'price_currency': null
|
|
497
|
+
'price_currency': null,
|
|
498
|
+
'discounted_price': null,
|
|
499
|
+
'discount': null,
|
|
500
|
+
'certificate_discounted_price': null,
|
|
501
|
+
'certificate_discount': null
|
|
487
502
|
];
|
|
488
503
|
}
|
|
489
504
|
""",
|
|
@@ -639,8 +654,12 @@ class CoursesIndexer:
|
|
|
639
654
|
"price",
|
|
640
655
|
"price_currency",
|
|
641
656
|
"offer",
|
|
657
|
+
"discounted_price",
|
|
658
|
+
"discount",
|
|
642
659
|
"certificate_price",
|
|
643
660
|
"certificate_offer",
|
|
661
|
+
"certificate_discounted_price",
|
|
662
|
+
"certificate_discount",
|
|
644
663
|
)
|
|
645
664
|
)
|
|
646
665
|
|
|
@@ -654,8 +673,12 @@ class CoursesIndexer:
|
|
|
654
673
|
"price": cr["price"],
|
|
655
674
|
"price_currency": cr["price_currency"],
|
|
656
675
|
"offer": cr["offer"],
|
|
676
|
+
"discounted_price": cr["discounted_price"],
|
|
677
|
+
"discount": cr["discount"],
|
|
657
678
|
"certificate_price": cr["certificate_price"],
|
|
658
679
|
"certificate_offer": cr["certificate_offer"],
|
|
680
|
+
"certificate_discounted_price": cr["certificate_discounted_price"],
|
|
681
|
+
"certificate_discount": cr["certificate_discount"],
|
|
659
682
|
}
|
|
660
683
|
for cr in course_runs_queryset
|
|
661
684
|
]
|
|
@@ -951,7 +951,7 @@ richie/apps/courses/cms_toolbars.py,sha256=x5V-BVboyD9AiDa32nHslrXtsQFNrNr3mb2t7
|
|
|
951
951
|
richie/apps/courses/cms_wizards.py,sha256=PTkTFxkdvsIh2y1qhKNpW47-e0f0ulMbM5CWeujKQaM,18458
|
|
952
952
|
richie/apps/courses/defaults.py,sha256=1bye7rSGSp89ZUTW6FHUT02GE_-i-lJXfXV6EbY3Oxo,13033
|
|
953
953
|
richie/apps/courses/exceptions.py,sha256=XD2qNYjVYyeHRqYz5wNuDXKpCW6tHsQCsXRKL2b9ClY,192
|
|
954
|
-
richie/apps/courses/factories.py,sha256=
|
|
954
|
+
richie/apps/courses/factories.py,sha256=aVp4UlqBsj1kMh0rlag0FDe2zMNNmL6_VnwLZDtK_Z4,36663
|
|
955
955
|
richie/apps/courses/fields.py,sha256=km1AvdTC_nUTAJh6XdPtyvTeIozJ3R63Q8m0CSAezZI,1535
|
|
956
956
|
richie/apps/courses/forms.py,sha256=77H5EsOldl2__aC8CMWc6Hp5ycSBDr84rbccerKKw1o,3458
|
|
957
957
|
richie/apps/courses/helpers.py,sha256=DVUl9zD9EwEFaa-gfhjSEHWq6qy02DtSJI5jfBt3p_Q,3240
|
|
@@ -1138,7 +1138,7 @@ richie/apps/search/filter_definitions/helpers.py,sha256=Buyf0EJzYnlM3S8QrPWPhgRh
|
|
|
1138
1138
|
richie/apps/search/filter_definitions/mixins.py,sha256=EEcYVu426reDfeCaeVzNEzj7z40KjPB_yz3FthAIN-c,5669
|
|
1139
1139
|
richie/apps/search/indexers/__init__.py,sha256=RcrvJGdyUBxcuWY9OnZ2G-G0YEcDb55n3_otj2JqWWg,655
|
|
1140
1140
|
richie/apps/search/indexers/categories.py,sha256=AqLVVgbiOagmS9DkWmxvbB-QtFzFrVv7b_r3mzOV7lo,7237
|
|
1141
|
-
richie/apps/search/indexers/courses.py,sha256=
|
|
1141
|
+
richie/apps/search/indexers/courses.py,sha256=XMPm8pC6vd5vgADzdjPMSK7-6snF7i1sph0RznKWHec,36332
|
|
1142
1142
|
richie/apps/search/indexers/licences.py,sha256=kZ0vT1jIOqCXSQUsQEKVmTiMIhCFpdiPQeDxAiMgInQ,3691
|
|
1143
1143
|
richie/apps/search/indexers/organizations.py,sha256=uBTNBHiott4SMcxd4UdAliDdsUSDlWUK4gcoL-TJzCo,5774
|
|
1144
1144
|
richie/apps/search/indexers/persons.py,sha256=xXAbPDGa_iXVXsK8vn11-KhaGJgRSIghMG29KuPXwas,5740
|
|
@@ -2486,9 +2486,9 @@ richie/static/richie/js/build/99870.34581ce2cb1783eaefab.index.js,sha256=3ZdjUuB
|
|
|
2486
2486
|
richie/static/richie/js/build/99895.34581ce2cb1783eaefab.index.js,sha256=ST2kyTdc0fVK0IxNmItIgs6dnds7DVRwC7dzbHjG4CA,2570
|
|
2487
2487
|
richie/static/richie/js/build/99953.34581ce2cb1783eaefab.index.js,sha256=OWoLPJnHrmvF3HBQPgXooAGo5E0yJpJ7QTFHFghJpI8,135
|
|
2488
2488
|
richie/static/richie/js/build/index.js,sha256=_nRO5lntGWFWNEzWezxPzwzFeWW1VHCeOXPNe6sxu5w,1332732
|
|
2489
|
-
richie-3.1.3.
|
|
2490
|
-
richie-3.1.3.
|
|
2491
|
-
richie-3.1.3.
|
|
2492
|
-
richie-3.1.3.
|
|
2493
|
-
richie-3.1.3.
|
|
2494
|
-
richie-3.1.3.
|
|
2489
|
+
richie-3.1.3.dev28.dist-info/licenses/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
|
|
2490
|
+
richie-3.1.3.dev28.dist-info/METADATA,sha256=hc975kuf8WyM0WB1B3IFa2F5GZsTs8pOJ_NHqBDXX64,7034
|
|
2491
|
+
richie-3.1.3.dev28.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
2492
|
+
richie-3.1.3.dev28.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
|
|
2493
|
+
richie-3.1.3.dev28.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2494
|
+
richie-3.1.3.dev28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|