Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit ab5c1ff

Browse files
authored
feat: Add Stripe_id to Django Admin (#1104)
1 parent bf0f1b2 commit ab5c1ff

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

codecov_auth/admin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ class PlansInline(admin.TabularInline):
726726
"monthly_uploads_limit",
727727
"paid_plan",
728728
"is_active",
729+
"stripe_id",
729730
]
730731
formfield_overrides = {
731732
Plan._meta.get_field("benefits"): {"widget": Textarea(attrs={"rows": 3})},
@@ -791,12 +792,13 @@ class PlanAdmin(admin.ModelAdmin):
791792
list_display = (
792793
"name",
793794
"marketing_name",
794-
"base_unit_price",
795795
"is_active",
796+
"tier",
796797
"paid_plan",
798+
"billing_rate",
799+
"base_unit_price",
797800
"max_seats",
798801
"monthly_uploads_limit",
799-
"billing_rate",
800802
)
801803
list_filter = ("is_active", "paid_plan", "billing_rate", "tier")
802804
search_fields = ("name__iregex", "marketing_name__iregex")
@@ -811,6 +813,7 @@ class PlanAdmin(admin.ModelAdmin):
811813
"max_seats",
812814
"monthly_uploads_limit",
813815
"paid_plan",
816+
"stripe_id",
814817
]
815818
formfield_overrides = {
816819
Plan._meta.get_field("benefits"): {"widget": Textarea(attrs={"rows": 3})},

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ freezegun
2626
google-cloud-pubsub
2727
gunicorn>=22.0.0
2828
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
29-
https://github.com/codecov/shared/archive/b38e7f3813d4fc795d0e7cf852eced4660daa4ac.tar.gz#egg=shared
29+
https://github.com/codecov/shared/archive/fe16480b3646a616ff412d5c0a28cafd2c7104c1.tar.gz#egg=shared
3030
https://github.com/photocrowd/django-cursor-pagination/archive/f560902696b0c8509e4d95c10ba0d62700181d84.tar.gz
3131
idna>=3.7
3232
minio

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.13
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile requirements.in
@@ -416,7 +416,7 @@ sentry-sdk[celery]==2.13.0
416416
# shared
417417
setproctitle==1.1.10
418418
# via -r requirements.in
419-
shared @ https://github.com/codecov/shared/archive/b38e7f3813d4fc795d0e7cf852eced4660daa4ac.tar.gz
419+
shared @ https://github.com/codecov/shared/archive/fe16480b3646a616ff412d5c0a28cafd2c7104c1.tar.gz
420420
# via -r requirements.in
421421
simplejson==3.17.2
422422
# via -r requirements.in

0 commit comments

Comments
 (0)