Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Add an inline view for prices.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Jun 21, 2012
1 parent b3fe08d commit 8e95e6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion antitrust/admin.py
@@ -1,7 +1,11 @@
from django.contrib import admin
from antitrust.models import EveItem
from antitrust.models import EveItem, EveItemPrices

class EveItemPriceInline(admin.TabularInline):
model = EveItemPrices

class EveItemAdmin(admin.ModelAdmin):
list_display = ['name', 'eve_id', 'eve_group_id']
inlines = [EveItemPriceInline]

admin.site.register(EveItem, EveItemAdmin)

0 comments on commit 8e95e6a

Please sign in to comment.