Specific questions related to forms with the Django web framework

0
votes
1answer
22 views

Django not passing data to the post method

I have been going over a Django tutorial and I have come across an issue where whenever I am trying to post a form to pass data from the webpage to the database it will not go to the method that it is ...
0
votes
0answers
7 views

Error adding more fields with django-autocomplete-light

I have a problem and I am using 2 libraries : django-autocomplete-light and django-dynamic-formset.The 2 are very good at doing their job.The first is used to do autocomplete and the second to make ...
0
votes
0answers
15 views

Link on admin model change page (Django 2.0)

I want to add a link on the admin change page, pointing the user to another page with more dynamic content (own view).In the list view it worked well. I added a callable to the model like so:class ...
1
vote
1answer
25 views

How to update only the queried objects in django

I have a table ActivityLog to which new data is added in every second.I am querying this table every 5 seconds using an Api in the following way.logs=ActivityLog.objects.prefetch_related('...
0
votes
0answers
21 views

Django, compare list of dates in form field to check if exist for user

I have this problem, I have a system of reservations that needs to limit reservations made in Friday, for the user, to be only one per month, Friday is the last day the users can make a reservation. I ...
0
votes
1answer
8 views

django-import-export form <input> not rendering in custom admin template w/ grappelli

after implementing django-import-export on a project using django-grappelli for admin UI, I've discovered there are some CSS incompatibilities between the two libs: https://github.com/sehmaschine/...
0
votes
0answers
7 views

What is the difference between request.POST and dictionary data in django forms?

No problem when I write the code like this without using ajax:form=UploadForm(request.POST, request.FILES)but when using ajax I get an error when I write the code like this(post: 500 (Internal ...
0
votes
0answers
18 views

How to merge into a single view a form and a list of objects (or queryset)

Let me crearify the question:Objective: I want to have a form which will be hosted in my blog home where there are already a queryset in the context. The form will be used to create a new post.So ...
0
votes
1answer
10 views

Django formset error

I'm trying to setup line items as a formset in django ( charges) to add to a work-order. I've tried adding the field directly into modelformset_factory in ChargesCreateView, but still nothing ( even ...
0
votes
0answers
29 views

Trying to access model in form by going through another model

I am not that good at queries, so I need some help. I have a Course model, and a TeacherData model. Each teacher has its own courses. But when a teacher makes an account I use a Teacher model. And if ...
0
votes
1answer
27 views

How to modify files uploaded using django ModelForm?

Here I have a ModelForm, which (I was hoping) should replace any uploaded image with /some/other/image.png:class MyModel(models.Model):image=models.ImageField(upload_to='images/%Y/%m/%d/', ...
0
votes
0answers
11 views

Formset not registering as valid

I have a formset, but for some reason it isn't meeting the is_valid() criteria, so isn't saving the changes when it's submitted.Here is the relevant parts of the view:def admin_tools(request):...
0
votes
1answer
24 views

Widget used in forms is not appearing on web page. Django 1.11.5

So I have forms.pyextensions/forms.pyfrom django import formsfrom .models import SipExtensionfrom xmpp.models import xmpp_buddy_groupsclass ExtensionForm(forms.ModelForm):...
0
votes
0answers
14 views

Django PasswordChangeForm wont load widget attributes

I am trying to make a "Change Password"-page by using the PasswortChangeForm (with old_password, new_password1, new_password2. The function itself works perfectly, but it will not load any widget ...
0
votes
0answers
20 views

Django model form validation across full form

I'm using django model forms in my application. Anyway it does not seem validating the values for choice fields as shown below.models.pyclass Customer(models.Model):PASSPORT='PP'NIC='...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,