Ignore:
Timestamp:
3 Feb 2017, 07:54:44 (8 years ago)
Author:
Henrik Bettermann
Message:

Restrict maximum number of applications per school.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r14335 r14499  
    5757
    5858class SchoolSource(BasicSourceFactory):
    59     """A source that delivers all kinds of registrations.
     59    """A source that delivers all kinds of schools.
    6060    """
    6161    def getValues(self):
     
    6565        return [item[0] for item in sorted_items]
    6666
     67    def getToken(self, value):
     68        return value
     69
    6770    def getTitle(self, value):
    6871        return u"%s: %s -- %s" % (
     
    153156        title = _(u'1st Choice TPZ and School'),
    154157        source = SchoolSource(),
    155         required = False,
     158        required = True,
    156159        )
    157160
Note: See TracChangeset for help on using the changeset viewer.