from django.contrib.admin import ModelAdmin, register
from django.contrib.gis.admin import GeoModelAdmin
from weather.models import WeatherStation, Location


@register(Location)
class LocationAdmin(GeoModelAdmin):
    openlayers_url = '//static.dpaw.wa.gov.au/static/libs/openlayers/2.13.1/OpenLayers.js'
    list_display = ('pk', 'title', 'point', 'height')


@register(WeatherStation)
class WeatherStationAdmin(ModelAdmin):
    list_display = (
        'name', 'manufacturer', 'abbreviation', 'bom_abbreviation',
        'ip_address', 'last_reading', 'connect_every', 'active', 'upload_data')
    list_filter = ('manufacturer', 'active', 'upload_data')

from django.contrib.admin import ModelAdmin, register
from django.contrib.gis.admin import GeoModelAdmin
from weather.models import WeatherStation, Location


@register(Location)
class LocationAdmin(GeoModelAdmin):
    list_display = ('pk', 'title', 'point', 'height')


@register(WeatherStation)
class WeatherStationAdmin(ModelAdmin):
    list_display = (
        'name', 'manufacturer', 'abbreviation', 'bom_abbreviation',
        'ip_address', 'last_reading', 'connect_every', 'active', 'upload_data')
    list_filter = ('manufacturer', 'active', 'upload_data')

Remove custom OpenLayers.js from LocationAdmin.
Remove custom OpenLayers.js from LocationAdmin.
