Commit graph

868 commits

Author SHA1 Message Date
Asif Saif Uddin
4c5c4b8bc4
Merge pull request #341 from thiras/master
Change supported version to 2.1 at README.rst (Fix #340)
2018-10-23 15:15:03 +06:00
Zach Cheung
300209007b add Simplified Chinese translations 2018-10-23 15:38:04 +08:00
Ant Somers
3efac688ed
Change supported version to 2.1 at README.rst 2018-10-05 02:43:52 +03:00
Asif Saif Uddin
4562da4e18
updated doc about supported python and django versions. 2018-09-24 19:39:33 +06:00
Asif Saif Uddin
e150d24f7a
Merge pull request #334 from rlmv/django-2.1
Add Django 2.1 to tox
2018-09-24 19:25:17 +06:00
Bo Marchman
df8ceed265 Add Django 2.1 to tox 2018-08-07 11:56:02 -04:00
Lucas Wiman
bf1adce0b8
Merge pull request #329 from lucaswiman/fix-pep8-violations
Fix pep8 violations
2018-07-25 15:00:11 -07:00
Lucas Wiman
c53b19e50d Ignore 80 character line length restriction of pep8.
It seems like this hasn't been consistently followed in this codebase,
and the number of changes was fairly large.
2018-07-02 14:33:47 -07:00
Lucas Wiman
9189d60996 Fix remaining non-E501 line length changes.
The E402 module level import appears to be an error of some kind in flake8?
2018-07-02 13:01:49 -07:00
Lucas Wiman
0859508a64 Fix E123 closing bracket does not match indentation of opening bracket's line 2018-07-02 12:57:14 -07:00
Lucas Wiman
e23e86a2be Ignore W503 line break before binary operator
It doesn't seem like following this rule will lead to clearer code in the violations in this codebase.
2018-07-02 12:52:47 -07:00
Lucas Wiman
da65d0be32 Fix E30X too-few line spacing errors. 2018-07-02 12:20:38 -07:00
Lucas Wiman
600ddc8dc5 Fix F401: imported but unused. 2018-07-02 12:16:41 -07:00
Lucas Wiman
679aed41a2 Remove unused __unicode__ method (dead code). 2018-07-02 11:52:05 -07:00
Lucas Wiman
954624cb22 Fix F841: local variable is assigned but never used. 2018-07-02 11:50:56 -07:00
Lucas Wiman
f845dcb24c Fix E231: missing whitespace after ",". 2018-07-02 11:49:16 -07:00
Lucas Wiman
654e13235e Fix E303 too many blank lines. 2018-07-02 11:47:19 -07:00
Lucas Wiman
9a6634b87a Ignore assigning to lambda warning. 2018-07-02 11:45:51 -07:00
Lucas Wiman
54543f1e8d Add a flake8 environment to ensure pep8 compatibility. 2018-07-02 11:43:38 -07:00
Lucas Wiman
16dec4d12d
Merge pull request #317 from lucaswiman/django-1.11-compatibility
Fix handling of deferred fields on django 1.10+
2018-07-02 11:30:09 -07:00
Lucas Wiman
2e92877910 Merge branch 'master' into django-1.11-compatibility 2018-07-02 11:21:48 -07:00
Martey Dodoo
e750fc7408 Fix AUTHORS.rst formatting.
Add pipe character at the beginning of each line so that all authors are
not concatenated together when ReStructuredText is parsed. Add Martey to
AUTHORS as well.
2018-06-30 16:18:16 -07:00
Harry Moreno
1197839765 Update docs to support django 2.0 2018-06-30 16:11:43 -07:00
Lucas Wiman
45502c0ec2
Put changelog in the right place. 2018-06-30 15:52:00 -07:00
Lucas Wiman
7d6b45f0c1 Increase coverage: verify that accessing the descriptor from the class yields the descriptor object. 2018-06-28 17:04:57 -07:00
Lucas Wiman
ca2fbb4ccd Fix coverage for a codepath only executed in <1.10 environments. 2018-06-28 16:59:30 -07:00
Lucas Wiman
cde1d706af Cover a branch in has_changed. 2018-06-28 14:08:03 -07:00
Lucas Wiman
59347ef36f Correctly clean up recursion sentinel value. 2018-06-28 13:52:52 -07:00
Lucas Wiman
c16a275bd7 Use --cov-append option in travis build to include coverage data from all tox environments run on the travis environment.
Note that it is run as one per python version, but multiple versions of django are tested in each.
2018-06-28 13:46:39 -07:00
Lucas Wiman
4740ab43ec Update passed environment variables to match codecov documentation.
Hopefully this will combine the coverage reports.
2018-06-28 13:41:09 -07:00
Lucas Wiman
15f9393bb2 Handle API change in DeferredAttribute descriptor in django-trunk.
This should maintain compatibility with the next version of django.
2018-06-28 13:16:33 -07:00
Lucas Wiman
a84c3afddd Fix behavior of .previous() in Django 1.10+.
The complications are that when the attribute is set in Django 1.10,
it no longer counts as a deferred attribute, and it is not retrieved from the database.
Naively updating __set__ to retrieve the value if it is deferred leads to infinite
recursion because accessing the attribute involves loading data from the database
and trying to set the attribute based on that value. This commit introduces
a somewhat hacky flag that records whether we're already trying to set
the attribute further up in the call stack.
2018-06-28 13:15:56 -07:00
Lucas Wiman
5d410e9ccc Fix test failures from merge. 2018-06-28 11:29:44 -07:00
Lucas Wiman
98a1366608 Merge branch 'defer-has-changed' into django-1.11-compatibility 2018-06-21 12:52:33 -07:00
Lucas Wiman
90ed7fc905 Improve coverage. 2018-06-21 12:41:42 -07:00
Lucas Wiman
be1a7d9281 Update AUTHORS and CHANGES.
As far as I can tell, no changes to documentation is required.
2018-06-21 12:41:42 -07:00
Lucas Wiman
80b099f129 Do not override custom descriptors when present.
This commit adds a collection of wrapper classes for tracking fields
while still using custom descriptors that may be present. This fixes
a bug where deferring a model field with a custom descriptor meant
that the descriptor was overridden in all subsequent queries.
2018-06-21 12:41:42 -07:00
Lucas Wiman
be52bc9290 Add failing test for deferred attributes. 2018-06-21 12:41:42 -07:00
Lucas Wiman
0fc0b44c95 Remove version checks for django<1.8.
Support for older versions of django was dropped in 3.0.0.
2018-06-21 12:41:42 -07:00
João Amaro
6d2ba63387 update changelog and versions for 3.1.2 2018-05-09 14:45:37 -03:00
Václav Dohnal
a6ce9fcc3b add N/A as Language-Team 2018-05-04 13:51:46 +02:00
Václav Dohnal
db35475ece add link to the issue tracker on Github 2018-05-04 13:51:15 +02:00
Václav Dohnal
d7e8144d4c add missing file header 2018-05-04 13:50:58 +02:00
Václav Dohnal
248db7bde4 update czech (cs) translations 2018-05-04 13:46:16 +02:00
Václav Dohnal
b15f44c260 add czech (cs) translations 2018-05-04 13:45:53 +02:00
Hanley Hansen
18dfb6b2cf
Merge pull request #279 from hanleyhansen/inheritance-iterable
Update InheritanceIterable to inherit from ModelIterable instead of BaseIterable
2018-05-02 14:14:22 -04:00
Jack Cushman
d34043fd25 Avoid fetching deferred fields in has_changed 2018-02-10 10:53:36 -05:00
Germano Massullo
3422547483
Update AUTHORS.rst 2018-01-19 10:47:56 +01:00
Germano Massullo
7e23e30545
Removed missing include files 2018-01-19 10:45:33 +01:00
Jannis Leidel
1eff6d0d8f
Add project release info to Travis config. 2018-01-10 10:59:29 +01:00