Write that method in your views, and return
render(request,'templateName.html', optional) and go to your templates
and call your desired or important attribute with the instance of the
class using Django template tag
{{class_instanceInMethodInsideView.modelsAtrributeName}} as many attribute
as you
Try django-extra-views
https://github.com/AndrewIngram/django-extra-views
Hugely simplifies formsets
On 10 Nov 2022, at 11:14, Arnold Falanga wrote:
Hello can anyone help me to design a dynamic form with Django the
idea is to have two parts in this form. a link to add the lines
--
You rec
I fixed something similar once by having the model that was causing the
problem be set to abstract in its class meta.
O you need to "makemigrations user" if you've opened up the usermodel
and changed a lot of stuff (also had that problem before)
Hope these simple solutions work!
On Friday,
3 matches
Mail list logo