Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Upgrade to Django 2.2 LTS #702

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jayme-github
Copy link

Update paperless to the latest Django 2.2 (LTS) release. Django 2.0 is already EOL since April 2019.

I also dropped python 3.5 from the matrix (EOL September 2020) as it requires zipp 1.x and therefore extra rules in Pipenv to generate a working requirements.txt. If that's a problem let me know and I'll look into that.

Supersedes / Closes #671

...and don't read the whole file if there is no need to
The app.add_stylesheet() is deprecated. Please use app.add_css_file() instead.
Copy link
Contributor

@MasterofJOKers MasterofJOKers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and don't read the whole file if there is no need to

Should have been its own commit instead of hiding it in the second line of a commit message.

Comment on lines +57 to +61
count = 0
for line in src:
if count >= n_lines:
break
count += 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho better with enumerate

for count, line in enumerate(src, start=1):
  if count >= n_lines:
    break

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants