14 lines
262 B
Python
14 lines
262 B
Python
|
from django.db import models
|
||
|
from netfields import CidrAddressField, NetManager
|
||
|
|
||
|
|
||
|
# Create your models here.
|
||
|
class ips(models.Model):
|
||
|
inet = CidrAddressField()
|
||
|
objects = NetManager()
|
||
|
def __str__(self):
|
||
|
st = str(self.inet)
|
||
|
return st
|
||
|
|
||
|
|