Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RemovedInDjango18Warning in Django 1.7 #11

Open
lonemc opened this issue Jan 28, 2015 · 1 comment
Open

RemovedInDjango18Warning in Django 1.7 #11

lonemc opened this issue Jan 28, 2015 · 1 comment

Comments

@lonemc
Copy link

lonemc commented Jan 28, 2015

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

@phenicie
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants