-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add support for Wagtail 2.3 #1
Conversation
Because wagtail-regulations is still very much a work in progress, I'm not inclined to go piece-meal to Wagtail 2.3. We do not have to worry about it right now — it's not complete and we do not use it in cfgov-refresh. |
…Manager' object has no attribute 'url' in resolver.py
As wagtail-regulations is work in progress, changes have now been made to go directly to Wagtail 2.3 and remove the support for Wagtail 1.13 in this PR. As the SerializersTestCase was not working, this class has been commented out so that tox passes locally. |
@cwdavies I'd rather leave code in and have the tests fail until we can fix them than pursue passing tests no matter what. Once we get to Wagtail 2.8 I intend to go through and update this package from |
@willbarton I will uncomment code for failing tests in
The output from running the first serializers test is:
As there are always multiple sections per regulations page I was looking at the code in
I learned that if you have nested serializers and you're expecting more than one, you should add the many=True otherwise DRF will treat the manager as the object. DRF is |
e39f527
to
87d1485
Compare
Update to use latest version 1.0.2 of
regdown
and Python 3.8Fix ValueError: No item named "strong_em" exists when running
tox
Additions
tox.ini
andtravis.yml
andREADME.md
wagtail-copyablemodeladmin
toregulations_example/requirements.txt
Removals
tox.ini
andtravis.yml
tox.ini
andtravis.yml
six
fromknown_future_library
six.moves
frompages.py
Changes
Dockerfile
andtox.ini
andtravis.yml
tox.ini
andtravis.yml
andsetup.py
andREADME.md
regulations_example/requirements.txt
regulations_example/requirements.txt
Testing
Todos
Checklist