Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
ee7d2950
Commit
ee7d2950
authored
Sep 22, 2020
by
Samuel GAIST
Committed by
Flavio TARSETTI
Sep 22, 2020
Browse files
[accounts] Simplify import of urlparse
parent
d1f7392b
Changes
2
Hide whitespace changes
Inline
Side-by-side
beat/web/accounts/management/commands/year_revalidation_users.py
View file @
ee7d2950
...
...
@@ -29,6 +29,7 @@
import
datetime
import
sys
from
urllib.parse
import
urlparse
from
django.conf
import
settings
from
django.db
import
models
...
...
@@ -41,11 +42,6 @@ from ...models import Profile
from
...models
import
SupervisionTrack
from
...models
import
TemporaryUrl
try
:
from
urlparse
import
urlparse
except
ImportError
:
from
urllib.parse
import
urlparse
class
Command
(
InteractiveCommand
):
...
...
beat/web/accounts/migrations/0011_check_all_accounts.py
View file @
ee7d2950
...
...
@@ -28,17 +28,13 @@
from
__future__
import
unicode_literals
import
datetime
from
urllib.parse
import
urlparse
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
django.db
import
migrations
from
django.template
import
loader
try
:
from
urlparse
import
urlparse
except
ImportError
:
from
urllib.parse
import
urlparse
def
set_profile_state
(
apps
,
schema_editor
):
"""Set profile status"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment