Ignore:
Timestamp:
8 Oct 2012, 13:19:14 (12 years ago)
Author:
Henrik Bettermann
Message:

We need to import credits and passmark of course tickets in order to repair them. Let's use the form field validation for import.

Both passmark and credits must not be edited via the UI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r9315 r9316  
    545545
    546546    location_fields = []
    547     additional_fields = ['level', 'code', 'credits']
     547    additional_fields = ['level', 'code']
    548548    additional_headers = ['level', 'code']
    549549
     
    579579        obj.dcode = entries[0].__parent__.__parent__.code
    580580        obj.title = entries[0].title
    581         obj.credits = entries[0].credits
    582         obj.passmark = entries[0].passmark
     581        if getattr(obj, 'credits', None) is None:
     582            obj.credits = entries[0].credits
     583        if getattr(obj, 'passmark', None) is None:
     584            obj.passmark = entries[0].passmark
    583585        obj.semester = entries[0].semester
    584586        parent[row['code']] = obj
Note: See TracChangeset for help on using the changeset viewer.