X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/51d914bc0007135058a61623a2d057d2a7626a28..de93104a2513acc5a378496c6bf6ab7ed0d45d60:/apps/explorer/models.py diff --git a/apps/explorer/models.py b/apps/explorer/models.py index 5181e167..23acd7f1 100644 --- a/apps/explorer/models.py +++ b/apps/explorer/models.py @@ -55,12 +55,12 @@ class EditorPanel(models.Model): 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): @@ -100,3 +100,6 @@ class GalleryForDocument(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