{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/2070","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/2070/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/2070/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/2070/events","html_url":"https://github.com/torchbox/wagtail/issues/2070","id":123944954,"number":2070,"title":"Eliminate use of `SubfieldBase` from StreamField","user":{"login":"ironhouzi","id":3307295,"avatar_url":"https://avatars.githubusercontent.com/u/3307295?v=3","gravatar_id":"","url":"https://api.github.com/users/ironhouzi","html_url":"https://github.com/ironhouzi","followers_url":"https://api.github.com/users/ironhouzi/followers","following_url":"https://api.github.com/users/ironhouzi/following{/other_user}","gists_url":"https://api.github.com/users/ironhouzi/gists{/gist_id}","starred_url":"https://api.github.com/users/ironhouzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironhouzi/subscriptions","organizations_url":"https://api.github.com/users/ironhouzi/orgs","repos_url":"https://api.github.com/users/ironhouzi/repos","events_url":"https://api.github.com/users/ironhouzi/events{/privacy}","received_events_url":"https://api.github.com/users/ironhouzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-26T19:23:33Z","updated_at":"2015-12-27T08:10:59Z","closed_at":null,"body":"Some 3rd party django apps are using `SubfieldBase`, which are being depricated after Django 1.9 I believe.\r\n\r\nPlease try to get these fixed upstream.\r\n"},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/167392215","html_url":"https://github.com/torchbox/wagtail/issues/2070#issuecomment-167392215","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/2070","id":167392215,"user":{"login":"ironhouzi","id":3307295,"avatar_url":"https://avatars.githubusercontent.com/u/3307295?v=3","gravatar_id":"","url":"https://api.github.com/users/ironhouzi","html_url":"https://github.com/ironhouzi","followers_url":"https://api.github.com/users/ironhouzi/followers","following_url":"https://api.github.com/users/ironhouzi/following{/other_user}","gists_url":"https://api.github.com/users/ironhouzi/gists{/gist_id}","starred_url":"https://api.github.com/users/ironhouzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironhouzi/subscriptions","organizations_url":"https://api.github.com/users/ironhouzi/orgs","repos_url":"https://api.github.com/users/ironhouzi/repos","events_url":"https://api.github.com/users/ironhouzi/events{/privacy}","received_events_url":"https://api.github.com/users/ironhouzi/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T08:10:59Z","updated_at":"2015-12-27T08:10:59Z","body":"I assumed that your latest release with support for Django 1.9 already had ensured that these things had been weeded out from the Wagtail code base, but since wagtail relies so heavily on a handful of 3rd party Django apps, I assumed that some of these weren't updated with 1.9 support..\r\n\r\nI also have not yet made use of any StreamField's, so I should perhaps provide some more information.\r\n\r\n`news/models.py`:\r\n\r\n``` python\r\nfrom django.db import models\r\nfrom django.core.paginator import Paginator, PageNotAnInteger, EmptyPage\r\n\r\nfrom wagtail.wagtailcore.models import Page\r\nfrom wagtail.wagtailcore.fields import RichTextField\r\n\r\nfrom wagtail.wagtailimages.edit_handlers import ImageChooserPanel\r\nfrom wagtail.wagtailadmin.edit_handlers import FieldPanel\r\n\r\n\r\nclass NewsEntryIndex(Page):\r\n    @property\r\n    def news(self):\r\n        return NewsEntry.objects.live().descandant_of(self).order_by('-date')\r\n\r\n    def get_context(self, request):\r\n        # pagination\r\n        page = request.GET.get('page')\r\n        paginator = Paginator(self.news, 10)\r\n\r\n        try:\r\n            news = paginator.page(page)\r\n        except PageNotAnInteger:\r\n            news = paginator.page(1)\r\n        except EmptyPage:\r\n            news = paginator.page(paginator.num_pages)\r\n\r\n        context = super().get_context(request)\r\n        context['news'] = news\r\n\r\n        return context\r\n\r\n    class Meta:\r\n        verbose_name = 'Nyhetsoversikt'\r\n        verbose_name_plural = 'Nyhetsoversikter'\r\n\r\n# NewsEntryIndex.content_panels = []\r\nNewsEntryIndex.promote_panels = Page.promote_panels\r\n\r\n\r\nclass NewsEntry(Page):\r\n    description = models.CharField('Beskrivelse', max_length=140)\r\n    details = RichTextField('Detaljer', null=True, blank=True)\r\n    date = models.DateField('Dato', auto_now=True, blank=False)\r\n    feed_image = models.ForeignKey(\r\n        'wagtailimages.Image',\r\n        verbose_name='Bilde til nyhetsstrømmen',\r\n        null=True,\r\n        blank=True,\r\n        on_delete=models.SET_NULL,\r\n        related_name='+'\r\n    )\r\n    # event = models.ForeignKey(...)\r\n\r\n    @property\r\n    def news_index(self):\r\n        return self.get_ancestors().type(NewsEntryIndex).last()\r\n\r\n    content_panels = Page.content_panels + [\r\n        FieldPanel('description'),\r\n        FieldPanel('details'),\r\n    ]\r\n\r\n    promote_panels = Page.promote_panels + [\r\n        ImageChooserPanel('feed_image'),\r\n    ]\r\n\r\n    def __str__(self):\r\n        return self.description\r\n\r\n    class Meta:\r\n        verbose_name = 'Nyhet'\r\n        verbose_name_plural = 'Nyheter'\r\n```\r\n`requirements.txt`:\r\n\r\n```\r\nbeautifulsoup4==4.4.1\r\ndj-database-url==0.3.0\r\nDjango==1.9\r\ndjango-appconf==1.0.1\r\ndjango-compressor==1.6\r\ndjango-modelcluster==1.1\r\ndjango-taggit==0.17.6\r\ndjango-treebeard==3.0\r\ndjangorestframework==3.3.2\r\nhtml5lib==0.9999999\r\nPillow==3.0.0\r\npsycopg2==2.6.1\r\npytz==2015.7\r\nsix==1.10.0\r\nUnidecode==0.4.18\r\nwagtail==1.3\r\nWillow==0.2.2\r\n```\r\n\r\nEither way, I would like to see the warnings go away when using Wagtail."}}