from django import forms


class AllowForm(forms.Form):
    redirect_uri = forms.URLField(widget=forms.HiddenInput())
    scopes = forms.CharField(required=False, widget=forms.HiddenInput())
    client_id = forms.CharField(widget=forms.HiddenInput())
    state = forms.CharField(required=False, widget=forms.HiddenInput())
    response_type = forms.CharField(widget=forms.HiddenInput())

from django import forms


class AllowForm(forms.Form):
    allow = forms.BooleanField(required=False)
    redirect_uri = forms.URLField(widget=forms.HiddenInput())
    scopes = forms.CharField(required=False, widget=forms.HiddenInput())
    client_id = forms.CharField(widget=forms.HiddenInput())
    state = forms.CharField(required=False, widget=forms.HiddenInput())
    response_type = forms.CharField(widget=forms.HiddenInput())

Add allow field to form
Add allow field to form

  from django import forms
  
  
  class AllowForm(forms.Form):
+     allow = forms.BooleanField(required=False)
      redirect_uri = forms.URLField(widget=forms.HiddenInput())
      scopes = forms.CharField(required=False, widget=forms.HiddenInput())
      client_id = forms.CharField(widget=forms.HiddenInput())
      state = forms.CharField(required=False, widget=forms.HiddenInput())
      response_type = forms.CharField(widget=forms.HiddenInput())
  
Add allow field to form
## Code Before:
from django import forms


class AllowForm(forms.Form):
    redirect_uri = forms.URLField(widget=forms.HiddenInput())
    scopes = forms.CharField(required=False, widget=forms.HiddenInput())
    client_id = forms.CharField(widget=forms.HiddenInput())
    state = forms.CharField(required=False, widget=forms.HiddenInput())
    response_type = forms.CharField(widget=forms.HiddenInput())

## Instruction:
Add allow field to form
## Code After:
from django import forms


class AllowForm(forms.Form):
    allow = forms.BooleanField(required=False)
    redirect_uri = forms.URLField(widget=forms.HiddenInput())
    scopes = forms.CharField(required=False, widget=forms.HiddenInput())
    client_id = forms.CharField(widget=forms.HiddenInput())
    state = forms.CharField(required=False, widget=forms.HiddenInput())
    response_type = forms.CharField(widget=forms.HiddenInput())
