mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00

When deleting a datalayer, it will now be moved to a state "deleted", and it will only be deleted for real when running the command `umap empty_trash`. This is what we already do for the map itself, but until now if a user deleted a only a datalayer by mistake (not the map itself) it could not retrieve it.
26 lines
696 B
Python
26 lines
696 B
Python
# Generated by Django 5.1.4 on 2025-01-29 18:06
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("umap", "0025_alter_datalayer_geojson"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="datalayer",
|
|
name="modified_at",
|
|
field=models.DateTimeField(auto_now=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="datalayer",
|
|
name="share_status",
|
|
field=models.SmallIntegerField(
|
|
choices=[(0, "Inherit"), (99, "Deleted")],
|
|
default=0,
|
|
verbose_name="share status",
|
|
),
|
|
),
|
|
]
|