Changeset 6199


Ignore:
Timestamp:
Aug 15, 2008, 7:22:19 PM (16 years ago)
Author:
roland
Message:

changed maxlength to max_length in models.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exodus/models.py

    r6191 r6199  
    66
    77class NICType(models.Model):
    8     type = models.CharField(maxlength=10)
     8    type = models.CharField(max_length=10)
    99    class Admin:
    1010        pass
     
    1414
    1515class Polar(models.Model):
    16     polar = models.CharField(maxlength=10)
     16    polar = models.CharField(max_length=10)
    1717    class Admin:
    1818        pass
     
    2222
    2323class Status(models.Model):
    24     status = models.CharField(maxlength=200)
     24    status = models.CharField(max_length=200)
    2525    class Admin:
    2626        pass
     
    3030
    3131class Mode(models.Model):
    32     mode = models.CharField(maxlength=10)
     32    mode = models.CharField(max_length=10)
    3333    class Admin:
    3434        pass
     
    4141
    4242class Antenna(models.Model):
    43     type = models.CharField(maxlength=20)
    44     gain = models.IntegerField(maxlength=3)
     43    type = models.CharField(max_length=20)
     44    gain = models.IntegerField(max_length=3)
    4545    class Admin:
    4646        pass
     
    5050
    5151class LinkType(models.Model):
    52     type = models.CharField(maxlength=10)
     52    type = models.CharField(max_length=10)
    5353    class Admin:
    5454        pass
     
    5858
    5959class Location(models.Model):
    60     description = models.CharField(maxlength=200)
    61     coordinateX = models.IntegerField(maxlength=10)
    62     coordinateY = models.IntegerField(maxlength=10)
     60    description = models.CharField(max_length=200)
     61    coordinateX = models.IntegerField(max_length=10)
     62    coordinateY = models.IntegerField(max_length=10)
    6363    class Admin:
    6464        pass
     
    6969
    7070class Network(models.Model):
    71     domainname = models.CharField(maxlength=50)
     71    domainname = models.CharField(max_length=50)
    7272    ipspacestart = models.IPAddressField()
    7373    netmask = models.IntegerField()
     
    8181
    8282class Node(models.Model):
    83     name = models.CharField(maxlength=30, unique=True)
     83    name = models.CharField(max_length=30, unique=True)
    8484    location = models.ForeignKey(Location)
    8585    status = models.ForeignKey(Status)
     
    9797
    9898class NIC(models.Model):
    99     iface = models.CharField(maxlength=10)
     99    iface = models.CharField(max_length=10)
    100100    polar = models.ForeignKey(Polar, blank=True, null=True)
    101     shortdesc = models.CharField(maxlength=10)
    102     desc = models.CharField(maxlength=200)
    103     ssid = models.CharField(maxlength=30, blank=True, null=True)
     101    shortdesc = models.CharField(max_length=10)
     102    desc = models.CharField(max_length=200)
     103    ssid = models.CharField(max_length=30, blank=True, null=True)
    104104    mode = models.ForeignKey(Mode, blank=True, null=True)
    105105    status = models.ForeignKey(Status)
     
    132132
    133133class Link(models.Model):
    134     shortdesc = models.CharField(maxlength=10)
    135     desc = models.CharField(maxlength=100)
     134    shortdesc = models.CharField(max_length=10)
     135    desc = models.CharField(max_length=100)
    136136    ip = models.IPAddressField()
    137137    status = models.ForeignKey(Status)
     
    145145
    146146class DhcpStatic(models.Model):
    147     hostname = models.CharField(maxlength=10)
    148     macaddress = models.CharField(maxlength=17)
     147    hostname = models.CharField(max_length=10)
     148    macaddress = models.CharField(max_length=17)
    149149    address = models.IPAddressField()
    150150    link = models.ForeignKey(LinkPool)
Note: See TracChangeset for help on using the changeset viewer.