Skip to content

Commit

Permalink
add lower/upper to EmailField
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Nov 26, 2015
1 parent d5aa7c9 commit abe66e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/adminactions/mass_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def __getitem__(self, field_class):
('add', (add, True, True, ""))],
df.BooleanField: [('swap', (negate, False, True, ""))],
df.NullBooleanField: [('swap', (negate, False, True, ""))],
df.EmailField: [('change domain', (change_domain, True, True, ""))],
df.EmailField: [('change domain', (change_domain, True, True, "")),
('upper', (string.upper, False, True, "convert to uppercase")),
('lower', (string.lower, False, True, "convert to lowercase")),
],
df.URLField: [('change protocol', (change_protocol, True, True, ""))]
})

Expand Down

0 comments on commit abe66e3

Please sign in to comment.