learning-credentials 0.2.0rc1__py2.py3-none-any.whl → 0.2.0rc3__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.
- learning_credentials/__init__.py +1 -1
- learning_credentials/admin.py +2 -0
- learning_credentials/models.py +2 -2
- learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.txt +13 -0
- learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/from_name.txt +1 -0
- learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/subject.txt +4 -0
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/METADATA +1 -1
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/RECORD +12 -9
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/WHEEL +0 -0
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/entry_points.txt +0 -0
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/licenses/LICENSE.txt +0 -0
- {learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/top_level.txt +0 -0
learning_credentials/__init__.py
CHANGED
learning_credentials/admin.py
CHANGED
|
@@ -248,6 +248,8 @@ class CredentialAdmin(admin.ModelAdmin): # noqa: D101
|
|
|
248
248
|
'legacy_id',
|
|
249
249
|
'generation_task_id',
|
|
250
250
|
)
|
|
251
|
+
search_fields = ("learning_context_key", "user_id", "user_full_name")
|
|
252
|
+
list_filter = ("learning_context_key", "credential_type", "status")
|
|
251
253
|
|
|
252
254
|
def get_form(self, request: HttpRequest, obj: Credential | None = None, **kwargs) -> forms.ModelForm:
|
|
253
255
|
"""Hide the download_url field."""
|
learning_credentials/models.py
CHANGED
|
@@ -294,12 +294,12 @@ class Credential(TimeStampedModel):
|
|
|
294
294
|
course_name = get_learning_context_name(self.learning_context_key)
|
|
295
295
|
user = get_user_model().objects.get(id=self.user_id)
|
|
296
296
|
msg = Message(
|
|
297
|
-
name="
|
|
297
|
+
name="certificate_generated",
|
|
298
298
|
app_label="learning_credentials",
|
|
299
299
|
recipient=Recipient(lms_user_id=user.id, email_address=user.email),
|
|
300
300
|
language='en',
|
|
301
301
|
context={
|
|
302
|
-
'
|
|
302
|
+
'certificate_link': self.download_url,
|
|
303
303
|
'course_name': course_name,
|
|
304
304
|
'platform_name': settings.PLATFORM_NAME,
|
|
305
305
|
},
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% load i18n %}{% autoescape off %}
|
|
2
|
+
|
|
3
|
+
{% blocktrans %}Thank you for your participation in {{ course_name }} at {{ platform_name }}!{% endblocktrans %}
|
|
4
|
+
|
|
5
|
+
{% blocktrans %}We are happy to inform you that you have earned a certificate. You should feel very proud of the work you have done in this course. We congratulate you on your efforts and your learning.{% endblocktrans %}
|
|
6
|
+
|
|
7
|
+
{% trans "To view and download your certificate, please click on the following link:" %}
|
|
8
|
+
|
|
9
|
+
{{ certificate_link }}
|
|
10
|
+
|
|
11
|
+
{% blocktrans %}Thank you for choosing {{ platform_name }} for your learning journey. We look forward to seeing you in more courses in the future.{% endblocktrans %}
|
|
12
|
+
|
|
13
|
+
{% endautoescape %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{ platform_name }}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
learning_credentials/__init__.py,sha256=
|
|
2
|
-
learning_credentials/admin.py,sha256=
|
|
1
|
+
learning_credentials/__init__.py,sha256=mifXO5GP4OsNwqC6JvhstqUAJV8Zz8Qjbs8M-8YCzoo,88
|
|
2
|
+
learning_credentials/admin.py,sha256=ynK3tVJwLsIeV7Jk66t1FAVyVsU1G-KRIAdRkycVTmA,10439
|
|
3
3
|
learning_credentials/apps.py,sha256=AA6JYUyqKYvNJ5POtQKw_s1g1VrUXuQI96hbea9H220,761
|
|
4
4
|
learning_credentials/compat.py,sha256=3SE0CwWJHSNHlRMOm2NZd8zzIY3DKSBCRPBXi7QrWUY,4524
|
|
5
5
|
learning_credentials/exceptions.py,sha256=UaqBVXFMWR2Iob7_LMb3j4NNVmWQFAgLi_MNMRUvGsI,290
|
|
6
6
|
learning_credentials/generators.py,sha256=nktM3gDFv66BzXDJ8wjmjlIz9KWMmBPGlD93jS1WgcU,8821
|
|
7
|
-
learning_credentials/models.py,sha256=
|
|
7
|
+
learning_credentials/models.py,sha256=b6_F0I4bcqKi6Z-ARtJ7efJwxBPg1wu0mkZHG3HnkMI,16037
|
|
8
8
|
learning_credentials/processors.py,sha256=VoM7ybSSiC2kakNHep6PeZkWFE7FZeYdhdU97IOJ0vw,12466
|
|
9
9
|
learning_credentials/tasks.py,sha256=byoFEUvN_ayVaU5K5SlEiA7vu9BRPaSSmKnB9g5toec,1927
|
|
10
10
|
learning_credentials/urls.py,sha256=2YLZZW738D7Afyzq6hr5ajWIl6azmX-hNDGUg_8AFpE,370
|
|
@@ -20,15 +20,18 @@ learning_credentials/settings/common.py,sha256=_-HsQFH39LoxivuZKGxdfGAxU9T0WR2Ie
|
|
|
20
20
|
learning_credentials/settings/production.py,sha256=yEvsCldHOdsIswW7TPLW__b9YNEK-Qy05rX5WSAcEeo,484
|
|
21
21
|
learning_credentials/templates/learning_credentials/base.html,sha256=wtjBYqfHmOnyEY5tN3VGOmzYLsOD24MXdEUhTZ7OmwI,662
|
|
22
22
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.html,sha256=o-tfFQSNf-tuu_YzPosm0SFxUXe9oPh17PyjdiVSBhQ,811
|
|
23
|
+
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/body.txt,sha256=ld8bs0zbfVF6S-pPqjUKW6FRdITZO-gs4spZUpr-fpQ,675
|
|
24
|
+
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/from_name.txt,sha256=-n8tjPSwfwAfeOSZ1WhcCTrpOah4VswzMZ5mh63Pxow,20
|
|
23
25
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/head.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
learning_credentials
|
|
26
|
+
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/subject.txt,sha256=S7Hc5T_sZSsSBXm5_H5HBNNv16Ohl0oZn0nVqqeWL0g,132
|
|
27
|
+
learning_credentials-0.2.0rc3.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
|
|
25
28
|
openedx_certificates/__init__.py,sha256=8OoQEjyyrcDZkrdGAWZ5TcmTJf7orJNJKo83-DFQRXo,85
|
|
26
29
|
openedx_certificates/apps.py,sha256=KZ27RPqxCM-DxBftfAsPrToprUh1yPVPQPBV3qgTJXo,287
|
|
27
30
|
openedx_certificates/models.py,sha256=O749LzwZr7O5js_21Ca_nUGJr-y3WJs__OrjBYXnZ-I,1131
|
|
28
31
|
openedx_certificates/migrations/0001_initial.py,sha256=8pN1xEEecBrXKIleuKbZ_FTlTMoOOGiC0Ibk0tDzriM,8522
|
|
29
32
|
openedx_certificates/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
learning_credentials-0.2.
|
|
31
|
-
learning_credentials-0.2.
|
|
32
|
-
learning_credentials-0.2.
|
|
33
|
-
learning_credentials-0.2.
|
|
34
|
-
learning_credentials-0.2.
|
|
33
|
+
learning_credentials-0.2.0rc3.dist-info/METADATA,sha256=qyLILPg96zErzmjzY0LLq7kGfDS0gg1Q78ltoK39-4c,6621
|
|
34
|
+
learning_credentials-0.2.0rc3.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
|
35
|
+
learning_credentials-0.2.0rc3.dist-info/entry_points.txt,sha256=Ll51HUyeZ2UnWjOXHSx09FPTFs9VMIwDccq-mn2wFEc,166
|
|
36
|
+
learning_credentials-0.2.0rc3.dist-info/top_level.txt,sha256=IC4tbU9MNfH-NkPgSUzE0UEurEMTpK3TJPHmeRf7kVQ,42
|
|
37
|
+
learning_credentials-0.2.0rc3.dist-info/RECORD,,
|
|
File without changes
|
{learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{learning_credentials-0.2.0rc1.dist-info → learning_credentials-0.2.0rc3.dist-info}/top_level.txt
RENAMED
|
File without changes
|