Browse files

Merge pull request #37 from uptimebox/master

fixes for cities.admin and setup.py
  • Loading branch information...
2 parents 602db2d + 0b90934 commit 25985118699dfbb70ea5f3b1f3a580db110cc30d @coderholic committed Apr 20, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 cities/admin.py
  2. +1 −1 setup.py
View
8 cities/admin.py
@@ -47,8 +47,8 @@ class GeoAltNameAdmin(admin.ModelAdmin):
class PostalCodeAdmin(admin.ModelAdmin):
ordering = ['code']
- list_display = ['code', 'name', 'region_name', 'subregion_name', 'district_name']
- search_fields = ['code', 'name', 'region_name', 'subregion_name', 'district_name']
+ list_display = ['code', 'country', 'region', 'subregion']
+ search_fields = ['code', 'country__name', 'region__name', 'subregion__name']
raw_id_fields = Region.levels
-
-[admin.site.register(postal_code, PostalCodeAdmin) for postal_code in postal_codes.values()]
+
+admin.site.register(PostalCode, PostalCodeAdmin)
View
2 setup.py
@@ -15,7 +15,7 @@ def read(fname):
author='Ben Dowling',
author_email='ben.m.dowling@gmail.com',
url='https://github.com/coderholic/django-cities',
- packages=find_packages(),
+ packages=find_packages(exclude=['example']),
include_package_data=True,
zip_safe=False,
long_description=read('README.md'),

0 comments on commit 2598511

Please sign in to comment.