from django.db import models
from django import forms
from audit_log.models.managers import AuditLog


# Create your models here.


class Port(models.Model):
    name = models.CharField(max_length=250)
    port = models.CharField(max_length=250)
    description = models.TextField(blank=True)

    audit_log = AuditLog()
    #icon = models.ImageField(upload_to='images', blank=True)

    def __str__(self):
        return self.name


class FormPort(forms.ModelForm):
    pass

    class Meta:
        model = Port
[((10, 11, 10, 43), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((11, 11, 11, 43), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((12, 18, 12, 46), 'django.db.models.TextField', 'models.TextField', (), '', False, 'from django.db import models\n'), ((14, 16, 14, 26), 'audit_log.models.managers.AuditLog', 'AuditLog', ({}, {}), '()', False, 'from audit_log.models.managers import AuditLog\n')]