Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @classmethod
- def default_mail_attachment(self):
- if attachment_binary_file is None:
- self.mail_attachment.states = {'invisible': True}
- else:
- return attachment_binary_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement