diff options
Diffstat (limited to 'chimere/models.py')
| -rw-r--r-- | chimere/models.py | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/models.py b/chimere/models.py index ddeeefd..25b599b 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -1853,6 +1853,8 @@ class PropertyModel(models.Model):      @classmethod      def getAvailable(cls, area_name=None): +        if area_name and area_name.endswith('/'): +            area_name = area_name[:-1]          q = cls.objects.filter(available=True)          if not area_name:              return q.annotate(Count('areas')).filter(areas__count=0)  | 
