]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/wiki.py
wiki: Fix deleted page detection
[ipfire.org.git] / src / backend / wiki.py
index de5c3423a62709bb8446cd8aea365ead664e6078..ce1e4e0d7e79ecdeb54d9580c06d212df653c53e 100644 (file)
@@ -332,7 +332,7 @@ class Page(misc.Object):
                return self.data.timestamp
 
        def was_deleted(self):
-               return self.markdown is None
+               return not self.markdown
 
        @lazy_property
        def breadcrumbs(self):