File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ PAYME_KEY = "your-payme-key"
7575PAYME_ACCOUNT_FIELD = " id"
7676PAYME_ACCOUNT_MODEL = " clients.models.Client"
7777PAYME_ONE_TIME_PAYMENT = False
78+
79+ PAYME_DISABLE_ADMIN = False (optionally configuration if you want to disable change to True )
7880```
7981
8082Create a new View that about handling call backs
Original file line number Diff line number Diff line change 1+ from django .conf import settings
12from django .contrib import admin
23
34from payme .models import PaymeTransactions
@@ -13,4 +14,5 @@ class PaymeTransactionsUI(admin.ModelAdmin):
1314 ordering = ('-created_at' ,)
1415
1516
16- admin .site .register (PaymeTransactions , PaymeTransactionsUI )
17+ if not getattr (settings , 'PAYME_DISABLE_ADMIN' , False ):
18+ admin .site .register (PaymeTransactions , PaymeTransactionsUI )
Original file line number Diff line number Diff line change 88
99setup (
1010 name = 'payme-pkg' ,
11- version = '3.0.23 ' ,
11+ version = '3.0.24 ' ,
1212 license = 'MIT' ,
1313 author = "Muhammadali Akbarov" ,
1414 author_email = 'muhammadali17abc@gmail.com' ,
You can’t perform that action at this time.
0 commit comments