django-heythere icon indicating copy to clipboard operation
django-heythere copied to clipboard

RemovedInDjango18Warning in Django 1.7

Open lonemc opened this issue 10 years ago • 1 comments

After upgrading to Django 1.7.4. I get two warnings when I run: python manage.py createmigrations:

python2.7/site-packages/heythere/models.py:37: RemovedInDjango18Warning: NotificationManager.get_query_set method should be renamed get_queryset.

python2.7/site-packages/heythere/admin.py:15: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form NotificationForm needs updating

lonemc avatar Jan 28 '15 20:01 lonemc

I also experienced this as well. I solved by adding fields = 'all' to the Meta class of NotificationForm.

https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use

phenicie avatar Jul 21 '15 16:07 phenicie