learning-credentials 0.2.0rc1__py2.py3-none-any.whl → 0.2.0rc2__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.
@@ -1,3 +1,3 @@
1
1
  """A pluggable service for preparing Open edX credentials."""
2
2
 
3
- __version__ = '0.2.0rc1'
3
+ __version__ = '0.2.0rc2'
@@ -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."""
@@ -294,7 +294,7 @@ 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="credential_generated",
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',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: learning-credentials
3
- Version: 0.2.0rc1
3
+ Version: 0.2.0rc2
4
4
  Summary: A pluggable service for preparing Open edX credentials.
5
5
  Home-page: https://github.com/open-craft/learning-credentials
6
6
  Author: OpenCraft
@@ -1,10 +1,10 @@
1
- learning_credentials/__init__.py,sha256=VP6jLAbAcydui1q8-rUc2a3RBFNikScVyKa7zStUqCg,88
2
- learning_credentials/admin.py,sha256=zES_NeA4yS3b0NcRIErA6nkX7xpphRzb_Dk1R_sfFKE,10293
1
+ learning_credentials/__init__.py,sha256=NS8jgtMcLUso3tLVcFykCGxjVnvRc-1d6Pd3kTbtOkg,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=28IKCRKXXILRRLCIQxTMasSn7s1m2n8Jf-0euvw6T-A,16035
7
+ learning_credentials/models.py,sha256=O_iOWrRlDeFvOv7ntdd4ujxGc-g1fSbdACvUdFOOLh0,16036
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
@@ -21,14 +21,14 @@ learning_credentials/settings/production.py,sha256=yEvsCldHOdsIswW7TPLW__b9YNEK-
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
23
  learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/head.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- learning_credentials-0.2.0rc1.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
24
+ learning_credentials-0.2.0rc2.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
25
25
  openedx_certificates/__init__.py,sha256=8OoQEjyyrcDZkrdGAWZ5TcmTJf7orJNJKo83-DFQRXo,85
26
26
  openedx_certificates/apps.py,sha256=KZ27RPqxCM-DxBftfAsPrToprUh1yPVPQPBV3qgTJXo,287
27
27
  openedx_certificates/models.py,sha256=O749LzwZr7O5js_21Ca_nUGJr-y3WJs__OrjBYXnZ-I,1131
28
28
  openedx_certificates/migrations/0001_initial.py,sha256=8pN1xEEecBrXKIleuKbZ_FTlTMoOOGiC0Ibk0tDzriM,8522
29
29
  openedx_certificates/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- learning_credentials-0.2.0rc1.dist-info/METADATA,sha256=vQv3xj4X8io3NFfQMDWx95iQu8jUfRpbPXUTVxTbH1U,6621
31
- learning_credentials-0.2.0rc1.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
32
- learning_credentials-0.2.0rc1.dist-info/entry_points.txt,sha256=Ll51HUyeZ2UnWjOXHSx09FPTFs9VMIwDccq-mn2wFEc,166
33
- learning_credentials-0.2.0rc1.dist-info/top_level.txt,sha256=IC4tbU9MNfH-NkPgSUzE0UEurEMTpK3TJPHmeRf7kVQ,42
34
- learning_credentials-0.2.0rc1.dist-info/RECORD,,
30
+ learning_credentials-0.2.0rc2.dist-info/METADATA,sha256=O75rsUCR-zj-OmkJ58IX0mbpu5rNHZQr-O228ooU3qE,6621
31
+ learning_credentials-0.2.0rc2.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
32
+ learning_credentials-0.2.0rc2.dist-info/entry_points.txt,sha256=Ll51HUyeZ2UnWjOXHSx09FPTFs9VMIwDccq-mn2wFEc,166
33
+ learning_credentials-0.2.0rc2.dist-info/top_level.txt,sha256=IC4tbU9MNfH-NkPgSUzE0UEurEMTpK3TJPHmeRf7kVQ,42
34
+ learning_credentials-0.2.0rc2.dist-info/RECORD,,