Removed the obsolete field Group._ad, and added a migration for the change.
- Legacy-Id: 9147
This commit is contained in:
parent
e9fcce9cdc
commit
e379df0053
|
@ -26,7 +26,7 @@ class GroupAdmin(admin.ModelAdmin):
|
|||
list_filter = ["type", "state", "time"]
|
||||
search_fields = ["acronym", "name"]
|
||||
ordering = ["name"]
|
||||
raw_id_fields = ["charter", "parent", "_ad"]
|
||||
raw_id_fields = ["charter", "parent"]
|
||||
inlines = [RoleInline, GroupURLInline]
|
||||
prepopulated_fields = {"acronym": ("name", )}
|
||||
|
||||
|
@ -107,7 +107,7 @@ class GroupHistoryAdmin(admin.ModelAdmin):
|
|||
list_filter = ["type"]
|
||||
search_fields = ["acronym", "name"]
|
||||
ordering = ["name"]
|
||||
raw_id_fields = ["group", "parent", "_ad"]
|
||||
raw_id_fields = ["group", "parent"]
|
||||
|
||||
admin.site.register(GroupHistory, GroupHistoryAdmin)
|
||||
|
||||
|
|
22
ietf/group/migrations/0003_auto_20150304_0743.py
Normal file
22
ietf/group/migrations/0003_auto_20150304_0743.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('group', '0002_auto_20150208_1012'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='group',
|
||||
name='ad',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='grouphistory',
|
||||
name='ad',
|
||||
),
|
||||
]
|
|
@ -18,7 +18,6 @@ class GroupInfo(models.Model):
|
|||
type = models.ForeignKey(GroupTypeName, null=True)
|
||||
parent = models.ForeignKey('Group', blank=True, null=True)
|
||||
description = models.TextField(blank=True)
|
||||
_ad = models.ForeignKey(Person, verbose_name="AD", blank=True, null=True, db_column="ad_id")
|
||||
list_email = models.CharField(max_length=64, blank=True)
|
||||
list_subscribe = models.CharField(max_length=255, blank=True)
|
||||
list_archive = models.CharField(max_length=255, blank=True)
|
||||
|
|
Loading…
Reference in a new issue