fixed Unbound error

This commit is contained in:
2025-12-28 23:22:13 +01:00
parent ed44deb5a6
commit bcba59b5e4

View File

@@ -78,6 +78,8 @@ def add_things(request, box_id):
if created_count > 0:
success_message = f'Added {created_count} thing{"s" if created_count > 1 else ""} successfully.'
formset = ThingFormSet()
else:
formset = ThingFormSet()
return render(request, 'boxes/add_things.html', {
'box': box,