Skip to content

Commit

Permalink
Merge branch 'ziotom78:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ziotom78 authored Nov 6, 2023
2 parents fa524a6 + 03893ca commit 84761d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# HEAD

- Permit longer file names [#123](https://github.com/ziotom78/instrumentdb/pull/123)

- Return more useful errors when wrong paths are used [#121](https://github.com/ziotom78/instrumentdb/pull/121)

# Version 2.0.0
Expand Down
10 changes: 5 additions & 5 deletions browse/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class Entity(MPTTModel):
primary_key=True, unique=True, default=uuid.uuid4, editable=False
)
name = models.CharField(
max_length=256,
max_length=512,
help_text="Descriptive name for this entity",
validators=[validate_name],
)
Expand Down Expand Up @@ -237,12 +237,12 @@ class FormatSpecification(models.Model):
)
document_ref = models.CharField(
"ID of the specification document",
max_length=64,
max_length=256,
unique=True,
help_text="ID of the technical document",
)
title = models.CharField(
max_length=256,
max_length=512,
help_text="Title of the document containing the specification "
+ "for a file format",
)
Expand All @@ -255,7 +255,7 @@ class FormatSpecification(models.Model):
)
doc_file_name = models.CharField(
"name of the file containing the specification document",
max_length=256,
max_length=1024,
null=True,
blank=True,
help_text="Name of the file containing the specification document (optional)",
Expand Down Expand Up @@ -295,7 +295,7 @@ class Quantity(models.Model):
primary_key=True, unique=True, default=uuid.uuid4, editable=False
)
name = models.CharField(
max_length=256,
max_length=512,
help_text="Descriptive name for this quantity",
validators=[validate_name],
)
Expand Down

0 comments on commit 84761d6

Please sign in to comment.