Source

meblog / media / models.py

Diff from to

media/models.py

 	title = db.StringProperty()
 	created = db.DateTimeProperty(auto_now_add=True)
 	media = blobstore.BlobReferenceProperty()
+	filename = db.StringProperty()
+	filesize = db.IntegerProperty()
+	type = db.StringProperty()
+
+
+	def get_absolute_url(self):
+		return '/media/item/%s' % self.media.key()
+
+	def get_delete_url(self):
+		return '/media/delete/%s' % self.media.key()