Commit b1e6df09 authored by ozzeh's avatar ozzeh
Browse files

More fixes

parent 194066c9
......@@ -5,14 +5,13 @@ from test_oauth.models import Character, TESTOAuth2Data
class CharacterAdmin(admin.ModelAdmin):
fieldsets = (
('Character Information', {'fields': ('id', 'name')}),
('Character Information', {'fields': ('name')}),
('Allegiance', {'fields': ('alliance_id', 'corporation_id')}),
list_display = ('id', 'name', 'alliance_id', 'corporation_id')
readonly_fields = ('id', 'name', 'alliance_id', 'corporation_id')
list_display = ('name', 'alliance_id', 'corporation_id')
readonly_fields = ('name', 'alliance_id', 'corporation_id')
search_fields = ('name', 'alliance_id', 'corporation_id')
ordering = ('id',)
class TESTOAuth2DataAdmin(admin.ModelAdmin):
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