SEBA-513 Validation of xproto
Change-Id: I300e86c3b7b6839aa12d726d6bdf9ab59adece94
diff --git a/lib/xos-genx/xosgenx/jinja2_extensions/django.py b/lib/xos-genx/xosgenx/jinja2_extensions/django.py
index 0c34d3e..6fac823 100644
--- a/lib/xos-genx/xosgenx/jinja2_extensions/django.py
+++ b/lib/xos-genx/xosgenx/jinja2_extensions/django.py
@@ -124,11 +124,7 @@
if modifier == "required":
- if field_type == "string":
- if "blank" not in out: # if blank is already set, honor that value
- mod_out["blank"] = 'True' # by default, required strings can be blank
- else:
- mod_out["blank"] = 'False' # but other required fields can't be blank
+ mod_out["blank"] = 'False'
if link_type != "manytomany":
mod_out["null"] = 'False'