All Questions
2
questions
0
votes
2
answers
81
views
Django - Update each field in the database that have this value
Let's say I have two tables:
table#1: Space
table#2: Students
If I want to change the prom_name form table#1, I'd like to automatically update the prom_name in my table#2 as well
My model Students ...
1
vote
2
answers
90
views
Django: Update or Change previous saved model data
I have this code in my forms.py
ref_user = User.objects.get(
username=form.cleaned_data['referrer']
)
user = User.objects.create_user(
username=form.cleaned_data['username']
)...