rm old owner

This commit is contained in:
Qwann 2018-08-07 20:43:56 +02:00
parent f361932590
commit a5cb99c0c3
3 changed files with 5 additions and 12 deletions

View file

@ -61,8 +61,8 @@ class CharFieldModelAdmin(admin.ModelAdmin):
class EquipmentAdmin(admin.ModelAdmin):
list_display = ['name', 'stock', 'owner', 'pole', 'category']
ordering = ['name', 'owner', 'pole', 'category']
list_display = ['name', 'stock', 'pole', 'category']
ordering = ['name', 'pole', 'category']
inlines = [EquipmentDefaultExtraInline,
EquipmentLostExtraInline,
EquipmentRevisionExtraInline]

View file

@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-08-07 18:28
# Generated by Django 1.11.11 on 2018-08-07 18:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations
class Migration(migrations.Migration):
@ -13,10 +12,9 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterField(
migrations.RemoveField(
model_name='equipment',
name='owner',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='auth.Group'),
),
migrations.DeleteModel(
name='EquipmentOwner',

View file

@ -50,11 +50,6 @@ class Equipment(EventSpecificMixin, models.Model):
related_name="equipment",
through="EquipmentAttribution",
)
owner = models.ForeignKey(
Group,
blank=True,
null=True,
)
pole = models.ForeignKey(
EquipmentPole,
)