Fix admin constraints

It was not working because the data that we passed was not a string and
didn't end up being visible through the template;
Merge pull request #871 from vuntz/admin-constraints

Fix admin constraints