Skip to content

Commit

Permalink
fix: change lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
RustamovAkrom committed Oct 3, 2024
1 parent cb6fcdf commit b74a439
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions apps/orders/forms.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from django import forms
from localflavor.us.forms import USZipCodeField
from localflavor.us.forms import USZipCodeField # noqa
from .models import Order


class OrderCreateForm(forms.ModelForm):
# postal_code = USZipCodeField()
# postal_code = USZipCodeField() # noqa

class Meta:
model = Order
Expand Down
4 changes: 2 additions & 2 deletions apps/orders/views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import login_required # noqa
from django.shortcuts import get_object_or_404, redirect, render
from django.contrib import messages
from apps.cart.cart import Cart
from apps.coupons.forms import CouponApplyForm
from .forms import OrderCreateForm
from .models import Order, OrderItem
from .tasks import order_created
from .tasks import order_created # noqa


def order_create(request):
Expand Down
4 changes: 1 addition & 3 deletions apps/payment/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from django.contrib import admin

# Register your models here.
from django.contrib import admin # noqa
4 changes: 1 addition & 3 deletions apps/payment/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from django.db import models

# Create your models here.
from django.db import models # noqa
4 changes: 1 addition & 3 deletions apps/payment/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from django.test import TestCase

# Create your tests here.
from django.test import TestCase # noqa
1 change: 0 additions & 1 deletion apps/payment/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from decimal import Decimal
import stripe
from django.shortcuts import render
from django.conf import settings
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
Expand Down

0 comments on commit b74a439

Please sign in to comment.