def __unicode__(self):
return self.display_name
-class Book(models.Model):
+class Document(models.Model):
class Meta:
permissions = (
("can_share", "Can share documents without pull requests."),
)
- abstract=True
+
pass
class PullRequest(models.Model):
# document associated with the gallery
document = models.CharField(max_length=255)
+
+ def __unicode__(self):
+ return u"%s:%s" % (self.subpath, self.document)
\ No newline at end of file