summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chimere/models.py b/chimere/models.py
index de365de..c1b47d3 100644
--- a/chimere/models.py
+++ b/chimere/models.py
@@ -312,7 +312,7 @@ class SubCategory(models.Model):
return "%s / %s" % (self.category.name, self.name)
@classmethod
- def getAvailable(cls, item_types=None, area_name=None, public=False,
+ def getAvailable(cls, item_types=None, area_name=None, submission=False,
instance=False, area=None):
"""
Get list of tuples with first the category and second the associated
@@ -324,7 +324,7 @@ class SubCategory(models.Model):
subcategories = subcategories.filter(available=True)
else:
subcategories = subcategories.filter(item_type__in=item_types)
- if public:
+ if submission:
subcategories = subcategories.filter(submission=True)
selected_cats = []
if area_name: