Questions tagged as 'django-forms'

0
answers

Django dynamic combobox

The query I have is the following: Example of the model class Marca(models.Model): marca = models.CharField(max_length=30) class Modelo(models.Model): modelo = models.CharField(max_length=30) marca = models.models.For...
asked by 13.05.2017 / 01:18
1
answer

Key error in django when using kwargs.pop

Good, I would appreciate the help, I seem to be blocked with this, and it should not be complicated. I have a function in views.py that instantiates a form in the following way form = BusquedaPresenciaForm(initial={'fecha_inicio': datetime....
asked by 17.01.2017 / 12:14
1
answer

Insert attributes in all fields in a ModelForm Django 1.8

Hello friends, I'm having a problem with a modelForm in django 1.8, the code is as follows: class TrabajoForm(forms.ModelForm): class Meta: model = Trabajo exclude = ['fecha_solicitud', 'revisado'] def __init__(self, *...
asked by 24.07.2016 / 18:59
1
answer

Form that tells me what is the value of transportation with DJANGO. when selecting the school and the place where I live, I see the rate (value)

] 3 Form that tells me what is the value of transportation with DJANGO. when selecting the school and the place where you live, I see the rate (value)     
asked by 29.10.2018 / 21:31
1
answer

django AttributeError: 'EmailField' object has no attribute 'attrs'

here are my codes for forms.py ________________________ from django import forms from .models import Account class Usuario(forms.ModelForm): password=forms.PasswordInput() class Meta: model=Account fields=( 'email','u...
asked by 22.09.2016 / 06:14