How to change language of months in “SelectDateWidget” django

2018-12-26 Thread Gabriel Costa
I am using widget SelectDateWidget, and i am trying to change the name of months form english to portuguese, i already tried this: https://docs.djangoproject.com/en/2.1/topics/i18n/ is not working forms.py class RegisterForm2(forms.Form): gender = forms.ChoiceField(label="Género", choices =

Re: how can I work with multi model forms

2018-12-26 Thread Nur Mohsin
Hi, in views.py form.save() is commented. Remove comment and try again. Then, tell us what happens? On Wed, Dec 26, 2018 at 6:29 PM Tessnim Zrayga wrote: > Hello everyone, > I have this design: there's a firm, a firm can have multiple nodes. Each > node can have many scheduled actions. What I'm

Problem when override admin template whit project name have both capital and small letters

2018-12-26 Thread EaiLFly Bai
I just found a behavior not expected, but I'm not sure it by design or a bug. Let's say we have a Django project named iNOC and a model NewIncident, I need to override some template such as change_form.html /change_list.html and submit_line.html, if I put this three file in path'iNOC/template

how can I work with multi model forms

2018-12-26 Thread Tessnim Zrayga
Hello everyone, I have this design: there's a firm, a firm can have multiple nodes. Each node can have many scheduled actions. What I'm trying to do is to create a template containing all informations about a firm and be able to create multiple scheduled actions at a time, so this is what the te