Skip to content

Commit

Permalink
Ignore migrations in linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nik committed Dec 23, 2024
1 parent 409bfaf commit fc3eab3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions label_studio/users/migrations/0010_userproducttour.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_migration_linter as linter


class Migration(migrations.Migration):
Expand All @@ -12,6 +13,7 @@ class Migration(migrations.Migration):
]

operations = [
linter.IgnoreMigration(),
migrations.CreateModel(
name='UserProductTour',
fields=[
Expand Down
13 changes: 6 additions & 7 deletions label_studio/users/product_tours/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from typing import Any, Dict, Optional
from django.utils.translation import gettext_lazy as _

from django.db import models
from django.utils.translation import gettext_lazy as _
from pydantic import BaseModel, Field


Expand Down Expand Up @@ -31,9 +31,7 @@ class UserProductTour(models.Model):
)

name = models.CharField(
_('Name'),
max_length=256,
help_text='Unique identifier for the product tour. Name must match the config name.'
_('Name'), max_length=256, help_text='Unique identifier for the product tour. Name must match the config name.'
)

state = models.CharField(
Expand All @@ -46,8 +44,9 @@ class UserProductTour(models.Model):

interaction_data = models.JSONField(
_('Interaction Data'),
default=dict, blank=True,
help_text='Additional data about user interaction with the tour'
default=dict,
blank=True,
help_text='Additional data about user interaction with the tour',
)

created_at = models.DateTimeField(auto_now_add=True, help_text='When this tour record was created')
Expand Down

0 comments on commit fc3eab3

Please sign in to comment.