# Path: test_migrations/migrate_test/app/models.py
# class Blog(models.Model):
#     title = models.CharField(max_length=255)
#     body = models.TextField(null=True, blank=True)
#     category = models.ForeignKey(Category, null=True, blank=True, on_delete=models.CASCADE)
# 
#     # i18n = TranslationField(fields=("title", "body"), virtual_fields=False)
# 
#     class Meta:
#         # indexes = [GinIndex(fields=["i18n"])]
#         verbose_name_plural = "blogs"
# 
#     def __str__(self):
#         return self.title
# 
# class Category(models.Model):
#     name = models.CharField(max_length=255)
# 
#     # i18n = TranslationField(fields=("name",), virtual_fields=False)
# 
#     class Meta:
#         # indexes = [GinIndex(fields=["i18n"])]
#         verbose_name_plural = "categories"
# 
#     def __str__(self):
#         return self.name


from django.contrib import admin
from .models import Blog, Category
# -*- coding: utf-8 -*-
from __future__ import unicode_literals




@admin.register(Blog)
class BlogAdmin(admin.ModelAdmin):
    list_display = ("title", "category")



# Path: test_migrations/migrate_test/app/models.py
# class Blog(models.Model):
#     title = models.CharField(max_length=255)
#     body = models.TextField(null=True, blank=True)
#     category = models.ForeignKey(Category, null=True, blank=True, on_delete=models.CASCADE)
# 
#     # i18n = TranslationField(fields=("title", "body"), virtual_fields=False)
# 
#     class Meta:
#         # indexes = [GinIndex(fields=["i18n"])]
#         verbose_name_plural = "blogs"
# 
#     def __str__(self):
#         return self.title
# 
# class Category(models.Model):
#     name = models.CharField(max_length=255)
# 
#     # i18n = TranslationField(fields=("name",), virtual_fields=False)
# 
#     class Meta:
#         # indexes = [GinIndex(fields=["i18n"])]
#         verbose_name_plural = "categories"
# 
#     def __str__(self):
#         return self.name


# Path: test_migrations/migrate_test/app/admin.py
from django.contrib import admin
from .models import Blog, Category

# -*- coding: utf-8 -*-
from __future__ import unicode_literals




@admin.register(Blog)
class BlogAdmin(admin.ModelAdmin):
    list_display = ("title", "category")



@admin.register(Category)