Skip to content

DjangoLDP resolve_id error on container path

resolve_id is designed to raise an exception if the id does not exist, or if no id has been provided

However when running Model.resolve_id('/circle-members/') I found that when exactly one circle member exists, I receive this circle member

Testing in the shell this is because

kwargs = {}
CircleMember.objects.get(**kwargs)

returns all CircleMembers (throwing an exception if more than one CircleMember exists)

Edited by Calum Mackervoy