fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usunięcie zadziwiająco niepotrzebnego szablonu renderer.html.
[redakcja.git]
/
apps
/
explorer
/
models.py
diff --git
a/apps/explorer/models.py
b/apps/explorer/models.py
index
73e9063
..
e104cda
100644
(file)
--- a/
apps/explorer/models.py
+++ b/
apps/explorer/models.py
@@
-58,13
+58,14
@@
class EditorPanel(models.Model):
# Yes, this is intentionally unnormalized !
class GalleryForDocument(models.Model):
# Yes, this is intentionally unnormalized !
class GalleryForDocument(models.Model):
- name = models.CharField(max_length=100)
-
- # directory containing scans under MEDIA_ROOT/
- subpath = models.CharField(max_length=255)
+ name = models.CharField(max_length=100, blank=True)
# document associated with the gallery
# document associated with the gallery
- document = models.CharField(max_length=255)
+ document = models.CharField(max_length=255, unique=True)
+
+ # directory containing scans under MEDIA_ROOT/
+ subpath = models.CharField(max_length=255)
def __unicode__(self):
def __unicode__(self):
- return u"%s:%s" % (self.subpath, self.document)
\ No newline at end of file
+ return u"%s:%s" % (self.subpath, self.document)
+