Changeset 12535
- Timestamp:
- 1 Feb 2015, 07:27:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12533 r12535 725 725 def form_fields(self): 726 726 if not self.is_requestable(): 727 return grok.AutoFields(ICustomer).select('email', 'phone') 728 return grok.AutoFields(ICustomer).omit( 727 return grok.AutoFields( 728 self.context.form_fields_interface).select('email', 'phone') 729 return grok.AutoFields(self.context.form_fields_interface).omit( 729 730 'suspended', 'suspended_comment', 'reg_number', 'customer_id') 730 731 … … 802 803 @property 803 804 def form_fields(self): 804 form_fields = grok.AutoFields( ICustomer)805 form_fields = grok.AutoFields(self.context.form_fields_interface) 805 806 for field in self.omit_fields: 806 807 form_fields = form_fields.omit(field)
Note: See TracChangeset for help on using the changeset viewer.