martin-bts / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
0 stars 2 forks source link

list of RemovedInDjango20Warning #47

Closed sebastian-philipp closed 5 years ago

sebastian-philipp commented 5 years ago
/askbot/middleware/spaceless.py:17: RemovedInDjango20Warning: django.utils.functional.allow_lazy() is deprecated in favor of django.utils.functional.keep_lazy()
  reduce_spaces_between_tags = allow_lazy(reduce_spaces_between_tags, str)
/askbot/patches/django_patches.py:126: RemovedInDjango20Warning: Importing from django.core.urlresolvers is deprecated in favor of django.urls.
  from django.core.urlresolvers import get_callable
/askbot/tests/test_management_commands.py:147: ResourceWarning: unclosed file <_io.TextIOWrapper name='/askbot/tests/temp_export_user_data/extracted/data.json' mode='r' encoding='UTF-8'>
  json_data = json.loads(open(json_file).read())
/askbot/utils/jive.py:121: DeprecationWarning: cgi.escape is deprecated, use html.escape instead
  text = cgi.escape(text)
/testproject/testproject/urls.py:31: RemovedInDjango20Warning: Passing a 3-tuple to django.conf.urls.include() is deprecated. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.
  url(r'^admin/', include(admin.site.urls)),
/django/contrib/sitemaps/__init__.py:78: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'askbot.models.post.Post'> PostQuerySet.
  return paginator.Paginator(self.items(), self.limit)
/avatar/models.py:75: RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete
  user = models.ForeignKey(getattr(settings, 'AUTH_USER_MODEL', 'auth.User'))
/kombu/transport/django/models.py:29: RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete
  queue = models.ForeignKey(Queue, related_name='messages')
martin-bts commented 5 years ago

All issues have been addressed. If we made mistakes tests will fail and force us to correctly address them.