Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ jobs:
build:
docker:
- image: mikicz/tox
environment: # environment variables for primary container
environment:
DATABASE_URL: postgresql://root@localhost/circle_test?sslmode=disable
DB_USER: root
DB_NAME: circle_test
DB_PASSWORD: "password"
- image: circleci/postgres:10 # an example of how to specify a service container
- image: cimg/postgres:14.5
environment:
POSTGRES_USER: root
POSTGRES_DB: circle_test
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Adds first-class support for [PostgreSQL Views][pg-views] in the Django ORM.
For of the original [django-pgviews][django-pgviews] by [mypebble][mypebble] with support for Django 2.2+.
Fork of the original [django-pgviews][django-pgviews] by [mypebble][mypebble] with support for Django 3.2+.

[pg-views]: http://www.postgresql.org/docs/9.1/static/sql-createview.html
[django-pgviews]: https://github.com/mypebble/django-pgviews
Expand Down Expand Up @@ -454,6 +454,10 @@ to pin views to specific databases.
<td>4.0</td>
<td>0.8.1</td>
</tr>
<tr>
<td>4.1</td>
<td>0.8.4</td>
</tr>
</tbody>
</table>

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="django-pgviews-redux",
version="0.8.3",
version="0.8.4",
description="Create and manage Postgres SQL Views in Django",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
Expand Down
3 changes: 3 additions & 0 deletions tests/test_project/test_project/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
}


DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{37,38,39,310}-dj{22,32},
py{38,39,310}-dj40
py{37,38,39,310}-dj{32},
py{38,39,310}-dj{40,41}


[testenv]
Expand All @@ -11,10 +11,9 @@ setenv =
changedir = {toxinidir}/tests/test_project
deps=
-rtests/requirements.txt
dj22: https://github.com/django/django/archive/stable/2.2.x.tar.gz#egg=django
dj31: https://github.com/django/django/archive/stable/3.1.x.tar.gz#egg=django
dj32: https://github.com/django/django/archive/stable/3.1.x.tar.gz#egg=django
dj32: https://github.com/django/django/archive/stable/3.2.x.tar.gz#egg=django
dj40: https://github.com/django/django/archive/stable/4.0.x.tar.gz#egg=django
dj41: https://github.com/django/django/archive/stable/4.1.x.tar.gz#egg=django
commands=
python manage.py test {posargs:test_project.viewtest test_project.multidbtest}
passenv = DB_NAME DB_USER DB_PASSWORD