some initial work on models and getting updates from the api.
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
from django.contrib import admin
|
||||
from eve_auth import models
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@admin.register(models.Station)
|
||||
class StationAdmin(admin.ModelAdmin):
|
||||
list_display = ['name']
|
||||
|
||||
|
||||
@admin.register(models.Alliance)
|
||||
class AllianceAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'ticker', 'executor_corporation']
|
||||
|
||||
|
||||
@admin.register(models.Corporation)
|
||||
class CorporationAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'ticker', 'alliance', 'updated']
|
||||
|
||||
|
||||
@admin.register(models.Character)
|
||||
class CharacterAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'corp', 'updated']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user