Ignore:
Timestamp:
Aug 28, 2011, 1:00:28 PM (13 years ago)
Author:
rick
Message:

Organization needs to be a special Model to make fudgings around with it more easy.

Location:
src/django_gheat/wlheatmap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/filters.py

    r9579 r9592  
    2020      # Get list if accespoints found in the specific 'Meting', and make this is list.
    2121      wirelessleiden_ssid = Meting.objects.filter(meetrondje=mr,
    22         accespoint__organization='WirelessLeiden').\
     22        accespoint__organization__name='WirelessLeiden').\
    2323        values_list('accespoint__ssid',flat=True).\
    2424        order_by('accespoint__ssid').distinct()
  • src/django_gheat/wlheatmap/nodelist.py

    r9579 r9592  
    4040  filter = {}
    4141  filter.update({
    42     'organization' : 'WirelessLeiden',
     42    'organization__name' : 'WirelessLeiden',
    4343    'meting__latitude__lt' : maxlat,
    4444    'meting__longitude__lt' : maxlon,
  • src/django_gheat/wlheatmap/templates/js/LayerBase.js

    r9579 r9592  
    184184    initialize: function(name, options) {
    185185        var url = get_balanced_urls('http://', {{ settings.DJANGO_CDN_DOMAINS|safe }},
    186           '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__organization=WirelessLeiden');
     186          '{{ settings.DJANGO_PREFIX }}/wlheatmap/tile/${z}/${x},${y}.png?colour=255,0,0&accespoint__organization__name=WirelessLeiden');
    187187        options = OpenLayers.Util.extend({ numZoomLevels: 21 }, options);
    188188        var newArguments = [name, url, options];
Note: See TracChangeset for help on using the changeset viewer.