Closed garrettr closed 7 years ago
I think this is ready to merge; I'm just going to test the migration to make sure it will successfully migrate Heading blocks from the previous schema.
git checkout master
manage.py migrate
/manage.py createsuperuser
to use for logging in to admin.git checkout header-levels
manage.py migrate
Sadly, this lead to an error:
TypeError at /test/
string indices must be integers
@garrettr Is this still important?
@conorsch I'll close it for now. It's not that important, but more importantly I realized after doing the failed test in https://github.com/freedomofpress/securethenews/pull/52#issuecomment-264550902 that migrating changes to StreamFields
is a huge PITA. I don't think it's worth the effort at this point.
migrating changes to
StreamFields
is a huge PITA. I don't think it's worth the effort at this point.
StreamFields are too awesome not to have a major caveat like that!
Support choosing a heading level (h1-h6) in the Heading StreamField block type. Defaults to "h1" (largest possible heading).