def is_valid_length(self):
        return len(self.payload) <= 256
Determines if a notification payload is a valid length.
dataset/ETHPy150Open stephenmuss/django-ios-notifications/ios_notifications/models.py/Notification.is_valid_length