django-forms
Unidentified Errors.Please notify... error instead of my simple forms.ValidationError
OK, trying to add a clean method to a ModelForm in Django.I\'m adding a simple raise statement just to see if it works, and instead of my message, I get \"Unidentified Errors.Please notify...\"[详细]
2023-04-09 22:55 分类:问答Django form field label translations
I have a baseform with over 20 fields. Then I have about 15 other forms inheriting from that form, passing in a parameter called fields which the baseform uses to delete all other fields. Best explain[详细]
2023-04-09 12:08 分类:问答How to Query/Filter M2M 'through' object in Django
I have the following basic model… class Campaign(models.Model): name = models.CharField(_(\'name\'), max_length=80, unique=True)[详细]
2023-04-09 11:44 分类:问答Difference between cleaned_data and cleaned_data.get in Django
I\'ve seen some samples codes like: def clean_message(self): message = self.cleaned_data开发者_开发知识库[\'message\'][详细]
2023-04-09 09:16 分类:问答how can I bind values to form inputs Django
I am trying to do an edit page where I fill the input boxes with the values taken from the database. Say I have a model Employees and a field name, a form EmployeeForm and an input field name[详细]
2023-04-09 03:11 分类:问答In Django how can I create a user and a user profile at the same time from a single form submission
I am using extended version of the UserCreationForm to add users via my own template, which is working well.[详细]
2023-04-08 20:13 分类:问答Django. Cancel button for form in admin site
Is there any functionality in admin site that allow to implement for every add/change form cancel button, that redirects me to list of that for开发者_Python百科m objects. I mean some general solution[详细]
2023-04-08 04:53 分类:问答displaying django form error messages instead of just the field name
I have a form and I want to display the errors in a for lo开发者_Go百科op. {% for error in form.errors %}[详细]
2023-04-08 03:35 分类:问答Django planmember_set issue
I have a question that I hope someone can help me with.I\'m using a form to have the user select a \"plan\".Now I want to list all the members in the plan, in the form.I have a function \'get_owners\'[详细]
2023-04-08 03:34 分类:问答Setting a form field's default value from a request variable
In Django, is it possible to set the default value of a form field to be tied to a request variable. e.g. request.META[\'REMOTE_ADDR\'].[详细]
2023-04-08 01:30 分类:问答