diff mysite/band/admin.py @ 5:e602b5302b94

Added support for countries beside the USA.
author Brian Neal <bgneal@gmail.com>
date Thu, 14 May 2009 00:31:39 +0000
parents 0dcfcdf50c62
children 25e00d1b99bf
line wrap: on
line diff
--- a/mysite/band/admin.py	Sun Apr 19 18:36:56 2009 +0000
+++ b/mysite/band/admin.py	Thu May 14 00:31:39 2009 +0000
@@ -12,6 +12,7 @@
 from mysite.band.models import Album_Track
 from mysite.band.models import Band
 from mysite.band.models import City
+from mysite.band.models import Country
 from mysite.band.models import Fan
 from mysite.band.models import Gear
 from mysite.band.models import Gig
@@ -70,7 +71,7 @@
    model = City
 
 class CityAdmin(admin.ModelAdmin):
-   list_display = ('name', 'state')
+   list_display = ('name', 'state', 'country')
    list_filter = ('state', )
    search_fields = ('name', )
 
@@ -78,6 +79,10 @@
 
 #######################################################################
 
+admin.site.register(Country)
+
+#######################################################################
+
 class StateAdmin(admin.ModelAdmin):
    inlines = [
          CityInline,