index member

This commit is contained in:
www
2020-12-14 20:16:49 +00:00
parent ca753097b0
commit 14f641ec08
6 changed files with 126 additions and 57 deletions

View File

@@ -20,7 +20,7 @@ class django_crud_api():
if r is None:
return None
if len(r)>1:
raise LookupError("Mehr als ein Objekt von der API zurückgegeben")
raise LookupError("Mehr als ein Objekt von der API zurückgegeben filter: %s" % str(filter))
if len(r)==0:
return None
return r[0]