Tests and AGENTS.md updated
This commit is contained in:
@@ -240,7 +240,7 @@ def add_things(request, box_id):
|
||||
things = formset.save(commit=False)
|
||||
created_count = 0
|
||||
for thing in things:
|
||||
if thing.name or thing.thing_type or thing.description or thing.picture:
|
||||
if thing.name or thing.description or thing.picture:
|
||||
thing.box = box
|
||||
thing.save()
|
||||
created_count += 1
|
||||
|
||||
Reference in New Issue
Block a user