Commit 9b9e6dc3 authored by skyvyr's avatar skyvyr

Update 'test_oauth/admin.py'

fieldset commas
parent b1e6df09
......@@ -5,8 +5,8 @@ from test_oauth.models import Character, TESTOAuth2Data
class CharacterAdmin(admin.ModelAdmin):
fieldsets = (
('Character Information', {'fields': ('name')}),
('Allegiance', {'fields': ('alliance_id', 'corporation_id')}),
('Character Information', {'fields': ('name',)}),
('Allegiance', {'fields': ('alliance_id', 'corporation_id',)}),
)
list_display = ('name', 'alliance_id', 'corporation_id')
......@@ -17,7 +17,7 @@ class CharacterAdmin(admin.ModelAdmin):
class TESTOAuth2DataAdmin(admin.ModelAdmin):
fieldsets = (
('User', {'fields': ('user',)}),
('OAuth2', {'fields': ('access_token', 'refresh_token')}),
('OAuth2', {'fields': ('access_token', 'refresh_token',)}),
('Data', {'fields': ('primary_character',)}),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment