Pin wagtail to 0.3.1