Ignore:
Timestamp:
23 May 2012, 21:27:37 (13 years ago)
Author:
Henrik Bettermann
Message:

Use LGA source instead of vocabulary to catch LookupErrors? when LGA tuple has been changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py

    r8455 r8503  
    3030    nats_vocab, contextual_reg_num_source)
    3131from waeup.aaue.interfaces import (
    32     lgas_vocab, high_qual, high_grade, exam_types)
     32    high_qual, high_grade, exam_types, LGASource)
    3333from waeup.aaue.interfaces import MessageFactory as _
    3434from waeup.aaue.payments.interfaces import ICustomOnlinePayment
     35from waeup.aaue.utils.lgas import LGAS
     36
    3537
    3638class ICustomStudentBase(IStudentBase):
     
    7779
    7880    lga = schema.Choice(
    79         source = lgas_vocab,
     81        source = LGASource(),
    8082        title = _(u'State/LGA (Nigerians only)'),
    8183        required = False,
     
    269271
    270272    nysc_lga = schema.Choice(
    271         source = lgas_vocab,
     273        source = LGASource(),
    272274        title = _(u'Nysc Location'),
    273275        required = False,
Note: See TracChangeset for help on using the changeset viewer.