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]
|
||||
if request.POST:
|
||||
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():
|
||||
instance = form.save()
|
||||
form.save()
|
||||
inlines = [inline(request.POST, request.FILES, instance=person) for inline in form.inlines]
|
||||
for inline in inlines:
|
||||
if inline.is_valid():
|
||||
inline.save()
|
||||
|
|
Loading…
Reference in New Issue
Block a user