

from django.utils.translation import (
    pgettext,
    ugettext_lazy as _
)
from django.forms import (
    Form,
    CharField,
    Textarea
)


class EmailListForm(Form):
    '''
    Small form to send emails
    '''

    subject = CharField(label=pgettext('Subject', 'As in "email subject"'))
    body = CharField(widget=Textarea, label=pgettext('Content', 'As in "content of an email"'))



from django.utils.translation import (
    pgettext,
    ugettext_lazy as _
)
from django.forms import (
    Form,
    CharField,
    Textarea
)


class EmailListForm(Form):
    '''
    Small form to send emails
    '''

    subject = CharField(label=pgettext('As in "email subject"', 'Subject'))
    body = CharField(widget=Textarea, label=pgettext('As in "content of an email"', 'Content'))

Use correct order of arguments of pgettext
Use correct order of arguments of pgettext

  
  
  from django.utils.translation import (
      pgettext,
      ugettext_lazy as _
  )
  from django.forms import (
      Form,
      CharField,
      Textarea
  )
  
  
  class EmailListForm(Form):
      '''
      Small form to send emails
      '''
  
-     subject = CharField(label=pgettext('Subject', 'As in "email subject"'))
+     subject = CharField(label=pgettext('As in "email subject"', 'Subject'))
-     body = CharField(widget=Textarea, label=pgettext('Content', 'As in "content of an email"'))
+     body = CharField(widget=Textarea, label=pgettext('As in "content of an email"', 'Content'))
  
Use correct order of arguments of pgettext
## Code Before:


from django.utils.translation import (
    pgettext,
    ugettext_lazy as _
)
from django.forms import (
    Form,
    CharField,
    Textarea
)


class EmailListForm(Form):
    '''
    Small form to send emails
    '''

    subject = CharField(label=pgettext('Subject', 'As in "email subject"'))
    body = CharField(widget=Textarea, label=pgettext('Content', 'As in "content of an email"'))

## Instruction:
Use correct order of arguments of pgettext
## Code After:


from django.utils.translation import (
    pgettext,
    ugettext_lazy as _
)
from django.forms import (
    Form,
    CharField,
    Textarea
)


class EmailListForm(Form):
    '''
    Small form to send emails
    '''

    subject = CharField(label=pgettext('As in "email subject"', 'Subject'))
    body = CharField(widget=Textarea, label=pgettext('As in "content of an email"', 'Content'))
