Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WlascicielUpdate(UpdateView):
- model = Item
- fields = ['wlasciciel']
- template_name_suffix = '_update_form'
- def wypozycz(request):
- Item.wlasciciel = request.user
- Item.save()
- return redirect('/accounts/profile/')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement