mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Convert CustomFieldModel from object to abstract model
This commit is contained in:
parent
206c465e02
commit
0907a6ce5b
@ -105,7 +105,10 @@ class Webhook(models.Model):
|
||||
# Custom fields
|
||||
#
|
||||
|
||||
class CustomFieldModel(object):
|
||||
class CustomFieldModel(models.Model):
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
def cf(self):
|
||||
"""
|
||||
|
@ -4,7 +4,6 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import extras.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -30,7 +29,6 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'ordering': ['name'],
|
||||
},
|
||||
bases=(models.Model, extras.models.CustomFieldModel),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ClusterGroup',
|
||||
@ -74,7 +72,6 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'ordering': ['name'],
|
||||
},
|
||||
bases=(models.Model, extras.models.CustomFieldModel),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cluster',
|
||||
|
Loading…
Reference in New Issue
Block a user