api: fix unlike
[wolnelektury.git] / src / ajaxable / utils.py
index 8052e6b..82de847 100755 (executable)
@@ -48,7 +48,7 @@ def require_login(request):
 
 def placeholdized(form):
     for field in form.fields.values():
-        field.widget.attrs['placeholder'] = field.label
+        field.widget.attrs['placeholder'] = field.label + ('*' if field.required else '')
     return form