Skip to content

Field names concatenated in GeoModelAdmin multiple fields per map #123

@GregUK

Description

@GregUK

Using Django 1.6.1 with a GeoModelAdmin consisting of two maps. One with 1 geom field and the other with 2 geom fields similar to the exam for country admin shown below.

# admin.py
class CountryAdmin(GeoModelAdmin):
    options = {
        default_lat: -72,
        default_lon: 43,
    }
    maps = (
        (('big_river', 'the_dam'), { 'layers': ['google.streets'] }),
        (('little_stream',), {'overlay_style': {'stroke_color': "#0000ff"}}),
    )

Django returns an error as big_river and the_dam are joined to big_river_the_dam which causes a field lookup error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions