diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-27 16:04:53 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-01-27 16:04:53 +0100 |
commit | 99c8cce4e0f06bf5b84c757ce2b5120d176da5d5 (patch) | |
tree | a1329223fad0f4e214c5f8f4d057424ad74712cb | |
parent | 7ae6693f33ee4c7f92729dd0e076491421427063 (diff) |
Don't allow cache text to be None.
-rw-r--r-- | db.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ class Cache(Base): paste_hash = Column(String, ForeignKey('paste.hash'), index = True) paste = relation(Paste, primaryjoin = paste_hash == Paste.hash, lazy = False) syntax_name = Column(String) - text = Column(Text) + text = Column(Text, nullable = False) def __init__(self, hash, syntax_name, text): self.paste_hash = hash |