diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-12 18:54:30 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-12 18:54:30 +0200 |
commit | bb5ca32767ce6a25b72e03a4ebebd0648bc0cd42 (patch) | |
tree | eb3d8b5c2cbbfcc454a4e2c94929d11056fac61c /ishtar_common | |
parent | 7185d81691ede9520cecdd2a2e8dcac372aaac6c (diff) | |
download | Ishtar-bb5ca32767ce6a25b72e03a4ebebd0648bc0cd42.tar.bz2 Ishtar-bb5ca32767ce6a25b72e03a4ebebd0648bc0cd42.zip |
Basket: manage slug and public (for admin only)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index dc7c219ac..bcde57ea3 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -4574,6 +4574,8 @@ class Basket(FullSearch, OwnPerms): IS_BASKET = True label = models.CharField(_("Label"), max_length=1000) comment = models.TextField(_("Comment"), blank=True, null=True) + slug = models.SlugField(_("Slug"), blank=True, null=True) + public = models.BooleanField(_("Public"), default=False) user = models.ForeignKey( IshtarUser, blank=True, null=True, related_name='%(class)ss', on_delete=models.SET_NULL, |