Questions tagged [updateview]
28 questions
0
votes
0 answers
Django UpdateView Bootstrap Modal - i've got empty form in modal window
I've got empty Bootstrap modal form with Django UpdateView(CBV)
The most important question without using js , I will not be able to display data in a modal window? (I only use bootstrap.bundle.min.js in base.html)
Modal window show fields of empty…

olksv
- 11
- 2
0
votes
1 answer
How do I use Django generic updateviews to update my model using individual form field values?
models.py:
from django.db import models
class Location(models.Model):
name = models.CharField(max_length=20)
is_source = models.BooleanField(default=False)
is_destination = models.BooleanField(default=False)
def __str__(self):
…

Nceku Moyo
- 13
- 5
0
votes
1 answer
Django UpdateView Two Seperate Form Save (included inlineformset_factory)
I have a specific problem with my forms. I think it would be better to share my codes instead of explaining the problem in detail.
However, to explain in a nutshell; inside my model I have field OneToOneField and model of that field has…

andronova
- 21
- 8
0
votes
1 answer
Data transfer for Jinja2 from Updateviev
I have such a template on every html page into which I want to transfer data from my url processors:
{% block title %} {{ title }} {% endblock %}
{% block username %} {{username}} {% endblock %}
When using regular def functions, I pass them…

juniorDev
- 67
- 4
0
votes
0 answers
UpdateView - save as new record
What's the best method of saving an existing record as a new record when in a specific view?
I cannot use default values in a CreateView because the defaults will change depending on the type of record the user is creating.
models.py
class…

Game Analysis
- 135
- 9
0
votes
0 answers
Django function view rewriting to Class View UpdateView problem with Multiple Forms
Im trying to rewrite my whole app from function views to class views. Right now Im struggle with UpdateView I know that it can only accept one parameter of FORM.
But I wonder after rewriting the code from topics (like mine) how to do it correctly…

Golab368
- 15
- 6
0
votes
1 answer
Django - Modelform with override password field : initial value not visible (and not saved) in Based UpdateView
I use a form for handling FTP/SFTP (files) accesses. They can be sometimes updated.
My password field is a Charfield (not required) in my model but I wan't to hide it on updates. I use Bcrypt when saving it.
For this I followed the example here for…

Abpostman1
- 158
- 1
- 8
0
votes
1 answer
How pass data from template to Updateview
I'm very new to programming.
I would like to pass data from html input to update view and then save it to my database.
Tried to search for it but with no luck.
Here is my html code:
0
votes
2 answers
Custom button in Class based UpdateView django
Problem: My UpdateView looks the same as my CreateView. I would like to change the submit button from "Check" to "Update".
Here are my views in the views.py file:
class CapsUnifCreateView(CreateView):
template_name =…

Amun_Re
- 136
- 6
0
votes
1 answer
Django Custom User update with one to one to Customer model
I'm trying to create Update view for Customer model which have Onetoone relation with User(django model. After five hours and trying function base and class views I'm unable to get this working. Where am I making a mistake?
my models.py
class…

Lynx
- 25
- 4
0
votes
0 answers
Django UpdateView didn't update page
My form:
class TestCaseUpdateForm(forms.ModelForm):
class Meta:
model = TestCase
fields = ( 'name', 'executable', 'parameter_list', 'executable_type', 'test_type' , 'project_name', 'created_by')
My views:
class…

Wason
- 1,341
- 1
- 13
- 26
-1
votes
1 answer
UpdateView.jsx:71 Uncaught TypeError: Cannot read properties of undefined (reading 'title')
during the editing of blog data when I use value={post.title}, it is running successfully but after I refresh the whole code got disrupted. don't know why

Vishal Mishra
- 131
- 4
- 11
-2
votes
1 answer
When trying to update view faced an error "property defined on _CA Layer View"
I am new to Swift and trying to make a first app on SwiftUI on developer.apple and faced a problem when trying to update a view. I was trying to find a mistake, but I did everything step by step and code is same with sample code. I can not…

Kolykhalov Stas
- 5
- 2