Commit ee7d2950 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[accounts] Simplify import of urlparse

parent d1f7392b
......@@ -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):
......
......@@ -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"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment