Revision 4eb170f3

b/snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
506 506
        checked = []
507 507
        for entity, resource, quantity in provisions:
508 508

  
509
            if entity == target:
510
                m = "Cannot issue commission from an entity to itself (%s)" % (
511
                    entity,)
512
                raise InvalidDataError(m)
513

  
509 514
            ent_res = entity, resource
510 515
            if ent_res in checked:
511 516
                m = "Duplicate provision for %s.%s" % ent_res

Also available in: Unified diff