Changes between Initial Version and Version 1 of Ticket #34711


Ignore:
Timestamp:
Jul 14, 2023, 1:52:28 PM (16 months ago)
Author:
GHPS
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34711 – Description

    initial v1  
    44marked for saving even if no field has been changed, I could pin the problem down
    55to the integer enum fields used in both models and form.ChoiceField involved.
    6 In short form.has_changed() is triggered because of a double data conversion
     6In short, form.has_changed() is triggered because of a double data conversion
    77during the round-trip.
    88
     
    1212the string becomes an int again - which is why the original problem is hidden
    1313from the perspective of a user.
     14
     15This bug seem to be a regression from bug #22097.
    1416
    1517Background:
     
    3436choices=[(dcEntry.value, dcEntry.label) for dcEntry in mdMovie.eAssets],
    3537                          initial=mdMovie.eAssets.none)
     38}}}
    3639
    3740After processing the POST request, form.has_changed() is always true in view.py:
    3841
     42{{{
    3943>fmForm=fmMovie(vRequest.POST, vRequest.FILES or None, instance=rcCurrentMovie)
    4044>fmForm.has_changed()
Back to Top