Revision c8ef1fdb commissioning/servers/quotaholder/django_backend/callpoint.py

b/commissioning/servers/quotaholder/django_backend/callpoint.py
191 191
            m = "Invalid key for entity '%s'" % (entity,)
192 192
            raise InvalidKeyError(m)
193 193

  
194
        holdings = e.holdings.filter(entity=entity)
194
        holdings = e.holding_set.filter(entity=entity)
195 195
        resources = [h.resource for h in holdings]
196 196
        return resources
197 197

  
......
265 265
                h.save()
266 266
                newp.save()
267 267

  
268
                if p is not None and p.holdings.count() == 0:
268
                if p is not None and p.holding_set.count() == 0:
269 269
                    p.delete()
270 270

  
271 271
        return rejected

Also available in: Unified diff