Commit a7d77040 by Bence Dányi

firewall_gui: fix validation message

parent d62e794f
......@@ -432,7 +432,7 @@ def set_field(object, attr, errors, **kwargs):
setattr(object, attr, model.objects.get(**kwargs))
except Exception as e:
errors.append({
'name': ('%(model)s with the name "%(name)s" does not exists!') % {
attr: ('%(model)s with the name "%(name)s" does not exists!') % {
'model': model.__name__,
'name': kwargs.values()[0]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment