test/apps/main/migrations/0005_alter_staticlayer_layer_style.py
zakhy 8c4f160253 Форматирование кода под PEP8
Не убраны неиспользованные импорты
2025-02-26 11:50:11 +07:00

57 lines
1.9 KiB
Python

# Generated by Django 3.2.25 on 2025-02-21 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0004_auto_20250219_0247"),
]
operations = [
migrations.AlterField(
model_name="staticlayer",
name="layer_style",
field=models.JSONField(
blank=True,
default={
"fill": {"color": "rgba(255, 255, 255, 1)"},
"image": {
"height": 20,
"opacity": 1,
"scale": 1,
"src": "/static/img/marker.png",
"width": 30,
},
"stroke": {
"color": "rgba(0, 0, 0, 1)",
"lineCap": "round",
"lineDash": None,
"lineDashOffset": 0,
"lineJoin": "round",
"miterLimit": 10,
"width": 1,
},
"text": {
"backgroundFill": {"color": "#fff"},
"backgroundStroke": {"color": "#000", "width": 1},
"fill": {"color": "rgba(255, 255, 255, 1)"},
"font": "bold 12px/1 Arial",
"maxAngle": "0.7853981633974483",
"offsetX": 0,
"offsetY": -25,
"overflow": "false",
"padding": [3, 3, 3, 3],
"placement": "point",
"rotation": 0.0,
"text": "Example",
"textAlign": "center",
"textBaseline": "middle",
},
},
null=True,
),
),
]