Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit cdbb179

Browse files
App version released on the playstore and updated in the views
1 parent 4ca2adf commit cdbb179

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed
162 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Profile/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
from .models import HelpCenter, Profile, Wallet, Transaction, Referral, RecentEarnings, ResetPassword, SocialAccount
33

44
# Register your models here.
5-
admin.site.register(Profile)
5+
class ProfileAdmin(admin.ModelAdmin):
6+
search_fields = ['user__username']
7+
8+
admin.site.register(Profile, ProfileAdmin)
69

710
class WalletAdmin(admin.ModelAdmin):
811
list_display = ('user', 'points')

Profile/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def post(self, request):
623623

624624
if userProfile.new_user:
625625
if userWallet.points >= userAmount:
626-
if userAmount >= 5000:
626+
if userAmount >= 4500:
627627
userWallet.points -= userAmount
628628
# Set new user to false
629629
userProfile.new_user = False
@@ -709,7 +709,7 @@ def post(self, request):
709709

710710
class VersionCheck(APIView):
711711
def get(self, request, *args, **kwargs):
712-
latest_version = "2.3.1"
712+
latest_version = "2.3.2"
713713
return Response({"message": latest_version})
714714

715715

218 Bytes
Binary file not shown.

rewards/admin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
from .models import SpinWheel, TickTacToe, MonsterHunter, Quiz, Questions, Subject
33

44
# Register your models here.
5-
admin.site.register(SpinWheel)
5+
6+
class SpinWheelModel(admin.ModelAdmin):
7+
search_fields = ['user__username']
8+
admin.site.register(SpinWheel, SpinWheelModel)
9+
10+
611
admin.site.register(TickTacToe)
712
admin.site.register(MonsterHunter)
813
admin.site.register(Questions)

0 commit comments

Comments
 (0)