Skip to content

Commit

Permalink
Merge pull request #91 from shridarpatil/auto_name
Browse files Browse the repository at this point in the history
fix: set template name as per meta
  • Loading branch information
shridarpatil authored Aug 16, 2024
2 parents 6465692 + f6f5e62 commit beaa435
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

class WhatsAppTemplates(Document):
"""Create whatsapp template."""
def autoname(self):
self.name = self.template_name.lower().replace(" ", "_")

def validate(self):
if not self.language_code or self.has_value_changed("language"):
Expand Down

0 comments on commit beaa435

Please sign in to comment.