Skip to content

Commit

Permalink
Remove unused and redundant usages
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemarslan committed Sep 12, 2021
1 parent 6ffbf8e commit 1acb642
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion project/accounts/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.apps import AppConfig
from rest_framework.viewsets import ModelViewSet
from rest_framework.decorators import action
from rest_framework.response import Response
Expand Down
3 changes: 0 additions & 3 deletions project/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ def profile_image_thumb_url(self):

return "/static/img/no_image_md.png"

def __init__(self, *args, **kwargs):
super(Account, self).__init__(*args, **kwargs)

def save(self, *args, **kwargs):
"""Image crop/resize and thumbnail creation"""

Expand Down
4 changes: 0 additions & 4 deletions project/api/write.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
import PIL
import urllib
import uuid

from notifications.signals import notify

Expand All @@ -18,13 +17,10 @@

from django.core.files import File # need this for image file handling
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import user_passes_test
from django.contrib.sites.shortcuts import get_current_site

# civi packages
from api.forms import UpdateProfileImage
from api.models import Thread
from accounts.utils import send_mass_email
from .models import Activity, Category, Civi, CiviImage
from accounts.models import Account
from core.custom_decorators import require_post_params
Expand Down

0 comments on commit 1acb642

Please sign in to comment.