diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-01-18 04:48:29 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-01-18 04:48:29 +0100 |
commit | 855f471856e44a50f7a55a8d170d31b9d232af0d (patch) | |
tree | eae013a7fede705ac76b57494ded01d48cfe59f2 | |
parent | d6977979e3d858c2a3cf5aeabe43c307526a2d7f (diff) | |
download | kittystore-855f471856e44a50f7a55a8d170d31b9d232af0d.tar.gz kittystore-855f471856e44a50f7a55a8d170d31b9d232af0d.tar.xz kittystore-855f471856e44a50f7a55a8d170d31b9d232af0d.zip |
Full email body is not nullable, require it
-rw-r--r-- | kittystore/storm/model.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kittystore/storm/model.py b/kittystore/storm/model.py index a77f756..74524ed 100644 --- a/kittystore/storm/model.py +++ b/kittystore/storm/model.py @@ -112,11 +112,10 @@ class EmailFull(Storm): email = Reference((list_name, message_id), ("Email.list_name", "Email.message_id")) - def __init__(self, list_name, message_id, full=None): + def __init__(self, list_name, message_id, full): self.list_name = unicode(list_name) self.message_id = unicode(message_id) - if full is not None: - self.full = full + self.full = full class Attachment(Storm): |