-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
guoshijiang
committed
Mar 13, 2024
1 parent
14e907c
commit c99dd29
Showing
6 changed files
with
217 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
#encoding=utf-8 | ||
# encoding=utf-8 | ||
|
||
from django.contrib import admin | ||
from airdrop.models import ( | ||
AirdropUser, | ||
PointsRecord | ||
PointsRecord, | ||
ProjectInterAction, | ||
Questions | ||
) | ||
|
||
|
||
@admin.register(AirdropUser) | ||
class AddressAmountStatAdmin(admin.ModelAdmin): | ||
list_display = ('id', 'name', 'address', 'points') | ||
|
||
|
||
@admin.register(PointsRecord) | ||
class ChainAdmin(admin.ModelAdmin): | ||
list_display = ('id', 'address', 'type', 'points') | ||
|
||
|
||
@admin.register(ProjectInterAction) | ||
class ChainAdmin(admin.ModelAdmin): | ||
list_display = ('id', 'name', 'describe', 'language', 'type', 'max_points') | ||
|
||
|
||
@admin.register(Questions) | ||
class ChainAdmin(admin.ModelAdmin): | ||
list_display = ('id', 'question', 'answer', 'language') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters