mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -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
|
# Custom fields
|
||||||
#
|
#
|
||||||
|
|
||||||
class CustomFieldModel(object):
|
class CustomFieldModel(models.Model):
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
abstract = True
|
||||||
|
|
||||||
def cf(self):
|
def cf(self):
|
||||||
"""
|
"""
|
||||||
|
@ -4,7 +4,6 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import extras.models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
@ -30,7 +29,6 @@ class Migration(migrations.Migration):
|
|||||||
options={
|
options={
|
||||||
'ordering': ['name'],
|
'ordering': ['name'],
|
||||||
},
|
},
|
||||||
bases=(models.Model, extras.models.CustomFieldModel),
|
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='ClusterGroup',
|
name='ClusterGroup',
|
||||||
@ -74,7 +72,6 @@ class Migration(migrations.Migration):
|
|||||||
options={
|
options={
|
||||||
'ordering': ['name'],
|
'ordering': ['name'],
|
||||||
},
|
},
|
||||||
bases=(models.Model, extras.models.CustomFieldModel),
|
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='cluster',
|
model_name='cluster',
|
||||||
|
Loading…
Reference in New Issue
Block a user