Questions tagged as 'django-forms'

1
answer

Error NoReverseMatch on django

I am receiving the following error on my page made with django.    Reverse for 'subscribed' with keyword arguments' {'name': u'ImHarvol '}' not found. 1 pattern (s) tried: ['edoras / newsletter / subscribed $'] The page consists of a form...
asked by 15.08.2017 / 15:52
1
answer

Render multiple forms and validate them in a single template in DJANGO

I tried to render 3 forms with Class-based views in a single template but I did not succeed, so I decided to do something like this with a method: def formTortas(request): .... where I call my 3 forms defended in Forms.py in this way,...
asked by 06.04.2017 / 19:59
1
answer

Pre-validation using the CreateView form

I am using the generic views of Django to register / enter a product, the idea or the question is how I can evaluate previously said form sent to your view, my code to create is the following: class CrearProducto(CreateView): model = Prod...
asked by 28.12.2018 / 16:44
1
answer

Use UpdateView for two Django operations

I want to use a view to do two operations. From a list of articles I want to add or subtract the current quantity of the article. I duplicated my view and changed the name to reflect the operation I want to do, I created 2 URLs with different...
asked by 15.06.2018 / 21:19
1
answer

How to create dynamic inputs with Django?

I am making a form to add many products to the same collection and I want the collection form to create the collection with an unlimited list of products. My form is this: class TendenciaForm(forms.ModelForm): class Meta: model...
asked by 16.04.2018 / 13:31
1
answer

'FileField' object has no attribute 'is_hidden' when creating form to upload documents

I get this error in the template that renders my view, in which I am testing the FileField field in the model. {% extends 'base.html' %} {% block Tilte %} Registrar Solictud a la Convocatoria {% endblock Tilte %} {% block navbar %} {% end...
asked by 01.03.2018 / 17:36
1
answer

Filter for form in Django 1.9

I have a project where I create people and products, and at a certain moment I have a screen where I should look for the products that a person has in this way: By clicking "move" I send the id of that row (it belongs to an Assigned Res...
asked by 27.08.2017 / 23:37
1
answer

Enable and disable a ModelChoiceField with django-material (Materializecss) in Django

Good afternoon, I'm new to Django, and I'm trying to create a web design with Material Design, using django-material, a package for Django forms that apply this style, and I have the following problem: What I want to do is how well it puts in...
asked by 05.04.2017 / 20:04
0
answers

Form Django ImageField edit delete checkbox

I'm in a Django form and I want to modify the automatic checkbox that comes out in an ImageField field. The problem is the following: The box to clean the saved image appears on a top line, and what I want is to appear next to the word...
asked by 14.09.2018 / 09:14
1
answer

Validate form fields in django verifying their existence in the database

How to validate fields of a form in django by consulting its existence in the database (eg: the ID of a record)     
asked by 12.09.2018 / 17:08