List objects now container owner values, saved upon creation, linked to user fk; apps.dashboard.views updated accordingly; 36 UTs passing (2 new)

This commit is contained in:
Disco DeDisco
2026-02-08 22:33:15 -05:00
parent 6c0e9bb6ec
commit 94a161fe09
4 changed files with 41 additions and 2 deletions

View File

@@ -10,8 +10,9 @@ def new_list(request):
form = ItemForm(data=request.POST)
if form.is_valid():
nulist = List.objects.create()
nulist.owner = request.user
nulist.save()
if request.user.is_authenticated:
nulist.owner = request.user
nulist.save()
form.save(for_list=nulist)
return redirect(nulist)
else: