Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_form(self, form_class=None):
- form = super().get_form(form_class)
- form.fields['name'].widget = forms.TextInput(attrs={'placeholder': 'Album Name'})
- form.fields['artist_name'].widget = forms.TextInput(attrs={'placeholder': 'Artist'})
- form.fields['description'].widget = forms.Textarea(attrs={'placeholder': 'Description'})
- form.fields['image_url'].widget = forms.URLInput(attrs={'placeholder': 'Image URL'})
- form.fields['price'].widget = forms.NumberInput(attrs={'placeholder': 'Price'})
- return form
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement