How to code efficiently in a django project?
I am begineer in django, i am doing my first project in django. I am using mysql database with my project. Now while fetching data from the database and showing it in different sections of my projects need some logic, so i am using simple “for loops” , “if else statements” to do all this. I am also using boolean flags inside the database to execute different logic.
How to make user in Django choose the workshop he added to make a service record for his own car?
im struggling with same problem for 3 days now, im trying to make my finish project which is some kind of online servicebook for cars we own, i have models vehicle, workshop, filter, servicerecord and i cant add servicerecord to the car i have added is there anyone who could help me?
Here comes a little bit of code i have problems with from forms.py and views.py:
class ServiceRecordCreateForm(forms.ModelForm): def __init__(self, *args, **kwargs): `super().__init__(*args, **kwargs)