add command to clean social accounts from unnecessary data
[wolnelektury.git] / src / ajaxable / utils.py
index 9fd0091..80d398f 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