Properly allow generate user when DEBUG=True
[Bug 1089748] Filter by metadata.