Changeset 1225 in main


Ignore:
Timestamp:
06/15/12 07:25:38 (7 years ago)
Author:
pcosquer
Message:

forms: add start param to get_new_reference
csv: explicitely set auto to False

Location:
trunk/openPLM/plmapp
Files:
2 edited

Legend:

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

    r1177 r1225  
    291291                "reference" : reference, 
    292292                "revision" : revision, 
     293                "auto" : False, 
    293294                } 
    294295        for field in form.fields: 
  • trunk/openPLM/plmapp/forms.py

    r1224 r1225  
    155155                        raise ValidationError(_("An object with the same type, reference and revision already exists")) 
    156156                    else: 
    157                         cleaned_data["reference"] = get_new_reference(cls) 
     157                        cleaned_data["reference"] = get_new_reference(cls, start) 
    158158                elif cls.objects.filter(type=cls.__name__, reference=ref).exists(): 
    159159                    raise ValidationError(_("An object with the same type and reference exists, you may consider to revise it.")) 
Note: See TracChangeset for help on using the changeset viewer.