Giter Site home page Giter Site logo

Comments (7)

beatonma avatar beatonma commented on September 27, 2024

I'm afraid I haven't been able to reproduce this yet - this renders fine for me.

4.0.0 changed the default value of allow_outgoing_webmentions to make it configurable - can you confirm that you ran makemigrations and migrate after upgrading? I've just tried doing this and it rendered fine with or without running migrations but it's the only relevant thing I can think of that changed.

Can you view source in your browser and confirm that the checkbox isn't somehow hidden by css?

I'm all out of ideas after that but I'd at least like to cross those off the list.

Thanks!

from django-wm.

campegg avatar campegg commented on September 27, 2024

Thanks for taking a look! I have run makemigrations and migrate. This is what I see when I view source; the checkbox is definitely not there:

wm_view_source

Since it was the only other change I made, I also tried setting the value of WEBMENTIONS_ALLOW_OUTGOING_DEFAULT in my settings file to both True and False, as well as removing it completely, but that didn't have any effect (not that I really expected it to).

from django-wm.

beatonma avatar beatonma commented on September 27, 2024

Good to rule those out, thanks. I'll dig around some more...

from django-wm.

beatonma avatar beatonma commented on September 27, 2024
  • It doesn't seem to be affected by translation or localisation settings.
  • Misconfiguring the field names in the CreateView raises a FieldError, so it's not that.

The only way I've found for the checkbox not to render is if the field is misspelled in the template (e.g. {{ form.misspelled__allow_outgoing_webmentions }}).

That doesn't appear to be the case for you, and I don't see why it would have been affected by the update, but can you please try adding {{ form }} to your template to see what that renders?

from django-wm.

campegg avatar campegg commented on September 27, 2024

That works! (At least, the checkbox renders.)

django-wm-test-form

Edit: there seems to be an additional hidden field in there (initial-allow_outgoing_webmentions) that I've not seen before; guessing that's from setting WEBMENTIONS_ALLOW_OUTGOING_DEFAULT?

from django-wm.

campegg avatar campegg commented on September 27, 2024

OK, so I deleted the local dev version of my site, set up a new virtual environment, re-cloned my site repo and tried again. And guess what? It worked. So I did the same on my live site and it worked there, too. I'm guessing it was a problem on my part, not an issue with the package. Sorry for the runaround!

from django-wm.

beatonma avatar beatonma commented on September 27, 2024

Weird! No problem, glad you got it sorted out.

Aside/TIL: The hidden initial- field is used to check whether a field has changed when submitting a form - it's a core Django thing.

from django-wm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.