Changeset 463 in main


Ignore:
Timestamp:
11/10/11 10:16:52 (8 years ago)
Author:
pcosquer
Message:

csv: fix invalid 'Columns must have 2 distinct headers' raised when two columns have a 'None' header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/forms.py

    r460 r463  
    496496            for form in self.forms: 
    497497                header = form.cleaned_data['header'] 
     498                if header == u'None': 
     499                    header = None 
    498500                if header and header in headers: 
    499501                    raise forms.ValidationError(_("Columns must have distinct headers.")) 
Note: See TracChangeset for help on using the changeset viewer.