Commit a76a68d2 authored by Élie Bouttier's avatar Élie Bouttier

suppression de champs de notes inutiles

parent fef2152b
......@@ -456,7 +456,7 @@ class IPResourceAdmin(admin.ModelAdmin):
('prefixes', admin.RelatedOnlyFieldListFilter),
RouteFilter,
)
search_fields = ('=ip', 'notes',)
search_fields = ('=ip',)
actions = ['contact_ip_owners']
ordering = ['ip']
inlines = [ IPResourceStateInline ]
......@@ -478,8 +478,6 @@ class IPResourceAdmin(admin.ModelAdmin):
fields += ['password']
if obj.checkmk_label:
fields += ['checkmk']
if obj.notes:
fields += ['notes']
return fields
def get_inline_instances(self, request, obj=None):
......
# Generated by Django 2.2 on 2019-04-22 14:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('services', '0054_auto_20190219_2206'),
]
operations = [
migrations.RemoveField(
model_name='antennaallocation',
name='notes',
),
migrations.RemoveField(
model_name='ipresource',
name='notes',
),
migrations.RemoveField(
model_name='serviceallocation',
name='notes',
),
migrations.AlterField(
model_name='ipresource',
name='last_state',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='services.IPResourceState', verbose_name='dernier état'),
),
]
......@@ -100,7 +100,6 @@ class IPResource(models.Model):
prefixes = models.ManyToManyField(IPPrefix, verbose_name='préfixes')
reserved = models.BooleanField(default=False, verbose_name='réservée')
category = models.IntegerField(choices=CATEGORIES, verbose_name='catégorie')
notes = models.TextField(blank=True, default='')
checkmk_label = models.CharField(max_length=128, blank=True, default='')
last_state = models.ForeignKey("IPResourceState", on_delete=models.PROTECT, related_name='+', verbose_name='dernier état')
last_time_up = models.DateTimeField(null=True, blank=True, verbose_name='Dernière réponse au ping')
......@@ -332,7 +331,6 @@ class Tunnel(Route):
class Allocation(models.Model):
start = models.DateTimeField(verbose_name='Début de la période d’allocation', default=timezone.now)
end = models.DateTimeField(null=True, blank=True, verbose_name='Fin de la période d’allocation')
notes = models.TextField(blank=True, default='')
objects = ActiveAllocationManager()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment