Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
e7ac0af6
Commit
e7ac0af6
authored
5 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Bump to Django 2.2
parent
bb207da3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arkindex/documents/models.py
+9
-0
9 additions, 0 deletions
arkindex/documents/models.py
arkindex/users/api.py
+1
-1
1 addition, 1 deletion
arkindex/users/api.py
base/requirements.txt
+1
-1
1 addition, 1 deletion
base/requirements.txt
with
11 additions
and
2 deletions
arkindex/documents/models.py
+
9
−
0
View file @
e7ac0af6
...
...
@@ -367,6 +367,9 @@ class Page(Element):
return
True
return
False
# see https://code.djangoproject.com/ticket/30333
__hash__
=
models
.
Model
.
__hash__
def
__eq__
(
self
,
other
):
# Prevent AttributeError when a Page is an Element and its subclass has not been used
if
not
isinstance
(
other
,
Page
):
...
...
@@ -693,6 +696,9 @@ class MetaData(models.Model):
# TODO: Remove is_list when we move to Entities
return
self
.
name
.
lower
()
in
(
'
persons
'
,
'
places
'
,
'
subjects
'
)
# see https://code.djangoproject.com/ticket/30333
__hash__
=
models
.
Model
.
__hash__
def
__eq__
(
self
,
other
):
if
not
isinstance
(
other
,
MetaData
):
return
False
...
...
@@ -776,6 +782,9 @@ class InterpretedDate(models.Model):
def
__iter__
(
self
):
return
iter
((
self
.
year
,
self
.
month
,
self
.
day
))
# see https://code.djangoproject.com/ticket/30333
__hash__
=
models
.
Model
.
__hash__
def
__eq__
(
self
,
other
):
return
tuple
(
self
)
==
tuple
(
other
)
and
self
.
type
==
other
.
type
...
...
This diff is collapsed.
Click to expand it.
arkindex/users/api.py
+
1
−
1
View file @
e7ac0af6
...
...
@@ -159,7 +159,7 @@ class UserEmailVerification(RedirectView):
return
'
/
'
return
reverse
(
'
password_reset_confirm
'
,
kwargs
=
{
'
uidb64
'
:
urlsafe_base64_encode
(
str
(
user
.
id
).
encode
())
.
decode
()
,
'
uidb64
'
:
urlsafe_base64_encode
(
str
(
user
.
id
).
encode
()),
'
token
'
:
self
.
request
.
GET
[
'
token
'
],
})
...
...
This diff is collapsed.
Click to expand it.
base/requirements.txt
+
1
−
1
View file @
e7ac0af6
Django==2.
1
Django==2.
2
elasticsearch==6.2.0
ijson==2.3
lxml==4.2.3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment