Some checks failed
Container / meta (analyzer) (push) Waiting to run
Container / meta (api) (push) Waiting to run
Container / meta (legacy) (push) Waiting to run
Container / meta (nginx) (push) Waiting to run
Container / meta (playout) (push) Waiting to run
Container / meta (worker) (push) Waiting to run
Container / build (push) Blocked by required conditions
Project / pre-commit (push) Waiting to run
Project / test-tools (push) Waiting to run
Release-Please / release-please (push) Waiting to run
API schema / check (push) Has been cancelled
API schema / dispatch (push) Has been cancelled
API / lint (push) Has been cancelled
API / test-with-database (bullseye) (push) Has been cancelled
API / test-with-database (focal) (push) Has been cancelled
API / test-with-database (jammy) (push) Has been cancelled
Legacy / lint (7.4) (push) Has been cancelled
Legacy / test (7.4) (push) Has been cancelled
Legacy / locale (push) Has been cancelled
### Description Uploads with bulk_import defining --library fail with error 400 in the REST API The primary key of the track_type was changed from chars to a numerical ID, and the data model expects this now in the REST endpoint. However the bulk import still populates this field with the Char Tag. ### Testing Notes **What I did:** `libretime-api bulk_import --path /home/libretime/upload/ --library POD --allowed-extensions mp3` **How you can replicate my testing:** see above --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
30 lines
691 B
Python
30 lines
691 B
Python
from django.db import models
|
|
|
|
|
|
class Library(models.Model):
|
|
name = models.CharField(
|
|
max_length=255,
|
|
blank=True,
|
|
null=True,
|
|
db_column="type_name",
|
|
)
|
|
code = models.CharField(max_length=16, unique=True)
|
|
description = models.CharField(max_length=255, blank=True, null=True)
|
|
enabled = models.BooleanField(
|
|
blank=True,
|
|
default=True,
|
|
db_column="visibility",
|
|
)
|
|
|
|
analyze_cue_points = models.BooleanField(
|
|
blank=True,
|
|
default=True,
|
|
db_column="analyze_cue_points",
|
|
)
|
|
|
|
id = models.AutoField(primary_key=True)
|
|
|
|
class Meta:
|
|
managed = False
|
|
db_table = "cc_track_types"
|