Hugo Osvaldo Barrera
a507345c6d
Move test models into models.py and add migrations
...
Tests were failing on postgres due to foreign keys pointing to missing
tables.
In order for these tables to be present, we need migrations which
declare depending on `content_type`.
2017-09-06 19:47:18 -03:00
Hugo Osvaldo Barrera
a5e0238f49
Run tests with postgres
2017-09-06 19:36:36 -03:00
Hugo Osvaldo Barrera
80b4f2bb41
Fix failing tests with django/master
...
Several tests were failing with django master. This is because,
apparently, IDs don't match those expected in tests, and other
test-related details.
Replace all test comparisons with assertQuerysetEqual, which is safer
and cleaner for the sort of comparison we're doing.
2017-09-06 22:41:13 +03:00
Hugo Osvaldo Barrera
8200f91603
Add myself to AUTHORS
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
17583d15b3
Add an example that reproduces a pending issue
...
This should help make testing easier and should server as a reference
for something we'll want to write a test for in future.
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
fb32b97b37
Remove obsolete compatibility code comment
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
e73a4662c3
Prevent infinite redirection on django1.9
...
See here[1] as to why this is an issue, and why we can skip the avoided
code on django>=1.9.
[1]: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-contrib-admin
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
f28b0b5172
Update migrations
...
No backwards-compatibility here! Just dump your old base! :D
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
59679f3a4b
Run tests on py35 as well
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
977c73c4c3
Make runtests compatible with older django versions again
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
adcad20b48
Update all tests (and runtests.py)
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
b996d1c377
Avoid broken references to declared_fieldset
...
Check if this attribute exists first, since it does not in recent django
versions.
2015-12-16 10:31:33 -03:00
Hugo Osvaldo Barrera
a779187012
Add migrations for example app
...
Since running the app requires database initialization, it makes sense
to bundle these.
2015-10-21 22:27:18 -03:00
Hugo Osvaldo Barrera
ad5ce60158
Remove reference to obsolete request.REQUEST
2015-10-21 22:27:00 -03:00
Hugo Osvaldo Barrera
31bfe8d1e7
Remove deprecated django.conf.urls.patterns
2015-10-21 22:18:21 -03:00
Hugo Osvaldo Barrera
d4f061de8b
Update documentation to reflect recent changes
2015-10-21 22:16:35 -03:00
Hugo Osvaldo Barrera
c48d4f589b
Don't import models and managers in __init__
...
This is deprecated as of django 1.8, and does not work as of django 1.9.
2015-10-21 22:11:06 -03:00