err, wrong fk_name

This commit is contained in:
Sanj 2011-08-20 15:59:55 +05:30
parent 02bb6034f2
commit ff02d90143

View File

@ -8,7 +8,7 @@ class FeatureNamesInline(admin.StackedInline):
class FeatureRelationInline(admin.TabularInline): class FeatureRelationInline(admin.TabularInline):
model = Feature.relationships.through model = Feature.relationships.through
extra = 1 extra = 1
fk_name = 'feature2' fk_name = 'feature1'
class FeatureAdmin(admin.GeoModelAdmin): class FeatureAdmin(admin.GeoModelAdmin):
search_fields = ['preferred_name'] search_fields = ['preferred_name']