content html consistiency

This commit is contained in:
Kenneth Reitz
2013-10-02 22:17:50 -04:00
parent ab803011cd
commit af222ebdda
+4
View File
@@ -159,6 +159,10 @@ class URL(DynamoDBModel):
def text(self):
return Content.get(self.content).text
@property
def html(self):
return Content.get(self.content).html
@classmethod
def get_or_store(cls, url):
try: