Skip to content

Commit

Permalink
changed validation and lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhle79 committed Jan 8, 2024
1 parent 4d8772e commit 47ca7d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,7 @@ def latest_revision_rating(self):

@property
def whatsapp_template_prefix(self):
if self.whatsapp_title:
self.whatsapp_title = self.whatsapp_title.lower()
return self.whatsapp_title.replace(" ", "_")
return self.whatsapp_title.lower().replace(" ", "_")

@property
def whatsapp_template_body(self):
Expand Down

0 comments on commit 47ca7d5

Please sign in to comment.