0001-make-Field.anonymise-an-advanced-admin-attribute-108.patch
wcs/fields.py | ||
---|---|---|
161 | 161 |
re.sub('<.*?>', ' ', self.label), charset)).strip().encode(charset) |
162 | 162 | |
163 | 163 |
def get_admin_attributes(self): |
164 |
return ['label', 'type'] |
|
164 |
return ['label', 'type', 'anonymise']
|
|
165 | 165 | |
166 | 166 |
def export_to_json(self, include_id=False): |
167 | 167 |
field = {} |
... | ... | |
400 | 400 |
form.add(PrefillSelectionWidget, 'prefill', title = _('Prefill'), |
401 | 401 |
value=self.prefill, advanced=prefill_in_advanced, |
402 | 402 |
**self.prefill_kwargs) |
403 |
form.add(CheckboxWidget, 'anonymise', title = _('Anonymize'), |
|
404 |
value = self.anonymise, advanced=True) |
|
403 | 405 | |
404 | 406 |
def check_admin_form(self, form): |
405 | 407 |
return |
406 |
- |