
from django import forms


class QueryForm(forms.Form):
    query = forms.CharField(max_length=100)


from django import forms


class QueryForm(forms.Form):
    query = forms.CharField(
        label='',
        max_length=100,
        widget=forms.TextInput(attrs={'placeholder': 'IPv4/6 address'})
    )

Remove label and add placeholder to Query field.
Remove label and add placeholder to Query field.

  
  from django import forms
  
  
  class QueryForm(forms.Form):
-     query = forms.CharField(max_length=100)
+     query = forms.CharField(
+         label='',
+         max_length=100,
+         widget=forms.TextInput(attrs={'placeholder': 'IPv4/6 address'})
+     )
  
Remove label and add placeholder to Query field.
## Code Before:

from django import forms


class QueryForm(forms.Form):
    query = forms.CharField(max_length=100)

## Instruction:
Remove label and add placeholder to Query field.
## Code After:

from django import forms


class QueryForm(forms.Form):
    query = forms.CharField(
        label='',
        max_length=100,
        widget=forms.TextInput(attrs={'placeholder': 'IPv4/6 address'})
    )
