Changeset 6481


Ignore:
Timestamp:
Dec 25, 2008, 10:29:30 PM (16 years ago)
Author:
roland
Message:

Fixed a small bug in my database/models.py

Location:
trunk/exodus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/models.py

    r6479 r6481  
    9797    link = models.ForeignKey('self', blank=True, null=True)
    9898    ip = models.IPAddressField(unique=True, blank=True)
    99     netmask = models.IntegerField()
     99    netmask = models.IntegerField(null=True, blank=True)
    100100    ssid = models.CharField(max_length=50, blank=True, null=True)
    101101    mode = models.CharField(max_length=10, choices=WIFI_MODE_CHOICES,
  • trunk/exodus/views.py

    r6432 r6481  
    88
    99from exodus.models import *
    10 from exodus.wllogic import free_master_ip, new_ssid, add_interlink_ip, \
    11         free_interlink_ip
     10from exodus.wllogic import free_master_ip, new_ssid
    1211
    1312from exodus.utils import pdebug
     
    205204                self.is_changed.has_key('netmask'):
    206205            if not _instance.link:
    207                 _instance.ip = free_interlink_ip(_instance)
     206                #_instance.ip = free_interlink_ip(_instance)
     207                pass
     208
    208209            else:
    209                 _instance.ip = add_interlink_ip(_instance.link)
     210                #_instance.ip = add_interlink_ip(_instance.link)
     211                pass
    210212
    211213        # XXX: Change in netmask requires full range of netmask changes \
Note: See TracChangeset for help on using the changeset viewer.