Skip to content

Commit

Permalink
Fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
huangsam committed Oct 1, 2024
1 parent a7ce56b commit 2cb36db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions portal/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import logging

from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render
Expand All @@ -10,8 +8,6 @@
from portal.forms import ProfileForm, UserForm
from portal.models import Profile

logger = logging.getLogger(__name__)


class HomeView(TemplateView):
template_name = "portal/home.html"
Expand All @@ -24,7 +20,6 @@ class ProfileSignupView(FormView):

def form_valid(self, form):
user = form.save(commit=False)
username = form.cleaned_data["username"]
password = form.cleaned_data["password"]
user.set_password(password)
user.save()
Expand Down

0 comments on commit 2cb36db

Please sign in to comment.