Skip to content

Commit

Permalink
fix redundant import
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartaccent committed Jun 15, 2018
1 parent 847858d commit 5dd03d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ An example model choice field of users.
from django import forms
from django.contrib.auth.models import User
from wagtail.admin import blocks
from wagtail.core import blocks
from wagtailstreamforms.fields import BaseField, register
Expand Down Expand Up @@ -235,8 +235,8 @@ the same for any given regex pattern.
.. code-block:: python
from django import forms
from wagtail.core import blocks
from wagtail.core import blocks
from wagtailstreamforms.fields import BaseField, register
@register('regex_validated')
Expand Down Expand Up @@ -301,6 +301,8 @@ Django ``settings.py`` file:
.. code-block:: python
from captcha.fields import ReCaptchaField
from wagtail.core import blocks
from wagtailstreamforms.fields import BaseField, register
@register('recaptcha')
class ReCaptchaField(BaseField):
Expand Down
2 changes: 1 addition & 1 deletion example/wagtailstreamforms_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.auth.models import User

from captcha.fields import ReCaptchaField
from wagtail.admin import blocks
from wagtail.core import blocks
from wagtailstreamforms.fields import BaseField, register


Expand Down

0 comments on commit 5dd03d3

Please sign in to comment.