diff options
Diffstat (limited to 'kittystore/storm')
-rw-r--r-- | kittystore/storm/model.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kittystore/storm/model.py b/kittystore/storm/model.py index 8f74fea..00f3962 100644 --- a/kittystore/storm/model.py +++ b/kittystore/storm/model.py @@ -86,3 +86,13 @@ class Attachment(object): encoding = Unicode() size = Int() content = RawStr() + + +# References + +Email.attachments = ReferenceSet( + (Email.list_name, + Email.message_id), + (Attachment.list_name, + Attachment.message_id), + ) |