Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textblock #12

Open
DBonbon opened this issue Aug 15, 2022 · 1 comment
Open

textblock #12

DBonbon opened this issue Aug 15, 2022 · 1 comment

Comments

@DBonbon
Copy link

DBonbon commented Aug 15, 2022

I install the package with wagtail 3.0 (I had to make two small tweaks in the edit_handlers.py package script to run it). I had an issue with running the migrations as TextBlock* (from your ReadMe, as below) wasn't recognized. Thus, I changed it to CharField. This enabled me to enter the information in the admin but without the annotations. That is the selected points are rendered below the image rather on it.

Any input would be highly appreciated. Thanks for the consideration.

class AnnotationForm(BaseAnnotationForm):
title = forms.CharField()
about = forms.TextField()

@seb-b
Copy link
Member

seb-b commented Aug 26, 2022

We haven't update this package to work with wagtail 3.x yet, which might explain why the selected points are rendering in the wrong spot.

For a textarea element to render using a django form, try using a CharField but changing the widget, like this:
forms.CharField(widget=forms.Textarea)

There isn't a forms.TextField, there's a models.TextField, but that's not used for forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants