Ignore:
Timestamp:
25 Oct 2012, 11:41:19 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not allow that students can be removed from a bed by using the BedManageFormPage?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py

    r9414 r9416  
    360360    @action(_('Save'))
    361361    def save(self, **data):
     362        if data['owner'] == NOT_OCCUPIED:
     363            self.flash(_('No valid student id.'))
     364            self.redirect(self.url(self.context))
     365            return
    362366        msave(self, **data)
    363367        self.redirect(self.url(self.context.__parent__, '@@manage')+'?tab2')
Note: See TracChangeset for help on using the changeset viewer.