Skip to content

Commit

Permalink
For time being, only regular badge should be formal
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Dec 18, 2024
1 parent 40249d2 commit 6124b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/issuer/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def validate(self, data):
is_mbo = issuer.institution.institution_type == Institution.TYPE_MBO
is_private = data.get("is_private", False)
type_badge = data["badge_class_type"]
self.formal = type_badge in [BadgeClass.BADGE_CLASS_TYPE_REGULAR, BadgeClass.BADGE_CLASS_TYPE_MICRO]
self.formal = type_badge == BadgeClass.BADGE_CLASS_TYPE_REGULAR
if is_mbo and not is_private:
extensions += ["StudyLoadExtension"]
if not is_private:
Expand Down

0 comments on commit 6124b93

Please sign in to comment.