from django.contrib import admin
from .models.announcement import Announcement
from .models.announcementupdate import AnnouncementUpdate


class AnnouncementUpdateInline(admin.TabularInline):
    model = AnnouncementUpdate


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = ('title', )
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [ AnnouncementUpdateInline, ]

admin.site.register(Announcement, AnnouncementAdmin)

2ad4d1f97f54d3075c2c0ddabdd2d9314fc5a8bf
<mask token>


class AnnouncementUpdateInline(admin.TabularInline):
    <mask token>


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = 'title',
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [AnnouncementUpdateInline]


<mask token>

<mask token>


class AnnouncementUpdateInline(admin.TabularInline):
    model = AnnouncementUpdate


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = 'title',
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [AnnouncementUpdateInline]


<mask token>

<mask token>


class AnnouncementUpdateInline(admin.TabularInline):
    model = AnnouncementUpdate


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = 'title',
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [AnnouncementUpdateInline]


admin.site.register(Announcement, AnnouncementAdmin)

from django.contrib import admin
from .models.announcement import Announcement
from .models.announcementupdate import AnnouncementUpdate


class AnnouncementUpdateInline(admin.TabularInline):
    model = AnnouncementUpdate


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = 'title',
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [AnnouncementUpdateInline]


admin.site.register(Announcement, AnnouncementAdmin)

from django.contrib import admin
from .models.announcement import Announcement
from .models.announcementupdate import AnnouncementUpdate


class AnnouncementUpdateInline(admin.TabularInline):
    model = AnnouncementUpdate


class AnnouncementAdmin(admin.ModelAdmin):
    list_display = ('title', )
    raw_id_fields = ['creator', 'changed_by', 'parentusergroup']
    search_fields = ['title']
    inlines = [ AnnouncementUpdateInline, ]

admin.site.register(Announcement, AnnouncementAdmin)
