Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Update list_display in Translated_ContentAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
versun authored Feb 29, 2024
1 parent a0ba9cb commit 3143e6f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion django_text_translator/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ClaudeTranslatorAdmin(BaseTranslatorAdmin):
@admin.register(Translated_Content)
class Translated_ContentAdmin(admin.ModelAdmin):
fields = ["original_content", "translated_content", "translated_language", "tokens", "characters"]
list_display = ["original_content", "translated_language", "translated_content", "tokens", "characters"]
list_display = ["hash", "original_content", "translated_language", "translated_content", "tokens", "characters"]


@admin.register(TestTranslator)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 5.0.2 on 2024-02-29 06:25

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("translator", "0016_alter_deeplwebtranslator_max_characters_and_more"),
]

operations = [
migrations.RemoveField(
model_name="translated_content",
name="id",
),
migrations.AlterField(
model_name="translated_content",
name="hash",
field=models.BinaryField(
max_length=8, primary_key=True, serialize=False, unique=True
),
),
]

0 comments on commit 3143e6f

Please sign in to comment.