1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Initial work on custom fields

This commit is contained in:
Jeremy Stretch
2016-08-12 17:20:01 -04:00
parent bf1b8ab9b8
commit 550a05487d
8 changed files with 248 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import re
from django import forms
from django.db.models import Count, Q
from extras.forms import CustomFieldForm
from ipam.models import IPAddress
from tenancy.forms import bulkedit_tenant_choices
from tenancy.models import Tenant
@@ -78,7 +79,7 @@ def bulkedit_rackrole_choices():
# Sites
#
class SiteForm(forms.ModelForm, BootstrapMixin):
class SiteForm(BootstrapMixin, CustomFieldForm):
slug = SlugField()
comments = CommentField()