Skip to content

Commit

Permalink
REmove lingering django-fsm (#154)
Browse files Browse the repository at this point in the history
* REmove forgotten fsm

* Update poetry

* Update lockfile
  • Loading branch information
cp-at-mit authored Sep 27, 2024
1 parent 63e8a3e commit 1b866ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 41 deletions.
3 changes: 1 addition & 2 deletions payments/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from django.contrib import admin
from django.contrib.admin.decorators import display
from fsm_admin.mixins import FSMTransitionMixin
from mitol.common.admin import TimestampedModelAdmin
from reversion.admin import VersionAdmin

Expand Down Expand Up @@ -53,7 +52,7 @@ def has_add_permission(self, request, obj=None): # noqa: ARG002
can_add = False


class BaseOrderAdmin(FSMTransitionMixin, TimestampedModelAdmin):
class BaseOrderAdmin(TimestampedModelAdmin):
"""Base admin for Order"""

search_fields = [
Expand Down
5 changes: 1 addition & 4 deletions payments/migrations/0001_add_order_and_basket_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 4.2.8 on 2024-01-11 16:49
import django.db.models.deletion
import django_fsm
from django.conf import settings
from django.db import migrations, models

Expand Down Expand Up @@ -67,7 +66,7 @@ class Migration(migrations.Migration):
("updated_on", models.DateTimeField(auto_now=True)),
(
"state",
django_fsm.FSMField(
models.CharField(
choices=[
("pending", "Pending"),
("fulfilled", "Fulfilled"),
Expand All @@ -76,10 +75,8 @@ class Migration(migrations.Migration):
("declined", "Declined"),
("errored", "Errored"),
("review", "Review"),
("partially_refunded", "Partially Refunded"),
],
default="pending",
max_length=50,
),
),
(
Expand Down
34 changes: 2 additions & 32 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ mitol-django-common = "^2023.12.19"
mitol-django-payment-gateway = "^2023.12.19"
deepdiff = "^6.7.1"
django-safedelete = "^1.3.3"
django-fsm-admin-maintained = {git = "https://github.com/7tg/django-fsm-admin-django-4.git"}
python-slugify = "^8.0.1"
django-oauth-toolkit = "^2.3.0"
requests-oauthlib = "^1.3.1"
Expand Down
2 changes: 0 additions & 2 deletions unified_ecommerce/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@
"drf_spectacular",
"safedelete",
"reversion",
"django_fsm",
"fsm_admin",
"oauth2_provider",
# Application modules
"unified_ecommerce",
Expand Down

0 comments on commit 1b866ad

Please sign in to comment.