sorry, testing live
This commit is contained in:
parent
2666e99a59
commit
05ffc629b2
|
@ -26,10 +26,10 @@ def edit_profile(request):
|
||||||
#person = Person.objects.all()[0]
|
#person = Person.objects.all()[0]
|
||||||
if request.POST:
|
if request.POST:
|
||||||
form = PersonForm(request.POST, request.FILES, instance=person)
|
form = PersonForm(request.POST, request.FILES, instance=person)
|
||||||
|
inlines = [inline(request.POST, request.FILES, instance=person) for inline in form.inlines]
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
instance = form.save()
|
instance = form.save()
|
||||||
form.save()
|
form.save()
|
||||||
inlines = [inline(request.POST, request.FILES, instance=person) for inline in form.inlines]
|
|
||||||
for inline in inlines:
|
for inline in inlines:
|
||||||
if inline.is_valid():
|
if inline.is_valid():
|
||||||
inline.save()
|
inline.save()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user