#24844 closed Bug (fixed)
HStore Form Field falsely report has_changed
Reported by: | Ramez Issac | Owned by: | Andrea Grandi |
---|---|---|---|
Component: | contrib.postgres | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Pull Requests: | How to create a pull request | ||
Description ¶
Consider this simple Test
from django import forms from django.contrib.postgres.forms import HStoreField class HStoreForm(forms.Form): f1 = HStoreField() class TextForm(forms.Form): f1 = forms.Textarea() form_w_hstore = HStoreForm() assert form_w_hstore.has_changed() is False #Fails form_w_textarea = TextForm() assert form_w_textarea.has_changed() is False #Passes
Change History (6)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 10 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Has patch: | set |
---|
I try to fix the bug with this PR https://github.com/django/django/pull/4705
Note:
See TracTickets
for help on using tickets.
Triaged in this example project https://github.com/andreagrandi/django-ticket-24844
Running the tests with: python manage.py test
they fails with: