Skip to content

Tests not working with Django 3 #84

@TAnas0

Description

@TAnas0

I am using:

  • Django 3.2.10
  • Python 3.8
  • django-softdelete 0.9.2 (latest in PyPi, published 15 Oct 2020)

Running the tests, as instructed in the Readme django-admin.py test softdelete --settings="softdelete.settings" results in the following error:

...
from django.shortcuts import render_to_response, get_object_or_404, redirect
ImportError: cannot import name 'render_to_response' from 'django.shortcuts'

It's a compatibility issue with Django 3 which was resolved in this PR #77
When I install the latest commit using pip the tests run fine.
So I guess this is more of an issue about publishing the latest changes to PyPi. Maybe it's time for a major version 🙂

Somewhat related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions