fixed Unbound error
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user