All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Add properties_ru JSON field to store translated category, crystal_system, luster, streak, specific_gravity, color_description - Add translate_minerals management command using deep-translator (Google Translate), with a hard-coded dictionary for crystal systems - Template: show translated values in RU mode, fall back to English if missing - Add deep-translator to requirements.txt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
357 B
Python
17 lines
357 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('dailystone', '0002_add_russian_fields'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='mineral',
|
|
name='properties_ru',
|
|
field=models.JSONField(blank=True, default=dict),
|
|
),
|
|
]
|