add fk_name in admin to deal with multiple foreign keys
This commit is contained in:
parent
c8aad377a0
commit
02bb6034f2
|
@ -8,6 +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'
|
||||||
|
|
||||||
class FeatureAdmin(admin.GeoModelAdmin):
|
class FeatureAdmin(admin.GeoModelAdmin):
|
||||||
search_fields = ['preferred_name']
|
search_fields = ['preferred_name']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user