Skip to content
Snippets Groups Projects
Verified Commit 0ec2560e authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Add placeholder to keystring field

parent 310505e8
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@ from django.core.exceptions import ValidationError
class KeyStringField(forms.CharField):
def __init__(self, *args, **kwds):
kwds["widget"] = forms.Textarea
kwds["widget"] = forms.Textarea(attrs={
'placeholder': "ssh-key-type BASE64ENCODEDKEY hostname"
})
super().__init__(*args, **kwds)
def to_python(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment