Skip to content

Commit

Permalink
Fix models help text
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Aug 17, 2024
1 parent 4652183 commit aa1c30e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2 on 2024-08-17 04:48

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('genomes', '0016_alter_track_track_type'),
]

operations = [
migrations.AlterField(
model_name='genome',
name='description_html',
field=models.TextField(blank=True, help_text='Description of the genome with inline HTML. Use `<br>` for a new line and `<a>` tags for links.', null=True),
),
migrations.AlterField(
model_name='lab',
name='description_html',
field=models.TextField(blank=True, help_text='Description of the genome with inline HTML. Use `<br>` for a new line and `<a>` tags for links.', null=True),
),
migrations.AlterField(
model_name='track',
name='description_html',
field=models.TextField(blank=True, help_text='Description of the genome with inline HTML. Use `<br>` for a new line and `<a>` tags for links.', null=True),
),
]
12 changes: 6 additions & 6 deletions app/genomes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Lab(models.Model):
datetime_created = models.DateTimeField(auto_now_add=True)
datetime_modified = models.DateTimeField(auto_now=True)
description_html = models.TextField(null=True, blank=True, help_text=(
"Description of the genome with inline HTML. Use `<br>` for a new line"
" and `<a>` tags for links."
"Description of the genome with inline HTML. Use `&lt;br&gt;` for a "
"new line and `&lt;a&gt;` tags for links."
))
website_url = models.URLField(null=True, blank=True, help_text=(
"URL pointing to lab group public website."
Expand Down Expand Up @@ -92,8 +92,8 @@ class Genome(models.Model):
"URL pointing to a public Apollo genome/tracks."
))
description_html = models.TextField(null=True, blank=True, help_text=(
"Description of the genome with inline HTML. Use `<br>` for a new line"
" and `<a>` tags for links."
"Description of the genome with inline HTML. Use `&lt;br&gt;` for a "
"new line and `&lt;a&gt;` tags for links."
))
reference = models.TextField(null=True, blank=True)
doi = models.CharField(max_length=255, null=True, blank=True)
Expand Down Expand Up @@ -167,8 +167,8 @@ class Track(models.Model):
accession_id = models.CharField(max_length=255, null=True, blank=True)
track_type = models.CharField(max_length=255, null=True, blank=True)
description_html = models.TextField(null=True, blank=True, help_text=(
"Description of the genome track with inline HTML. Use `<br>` for a"
" new line and `<a>` tags for links."
"Description of the genome with inline HTML. Use `&lt;br&gt;` for a "
"new line and `&lt;a&gt;` tags for links."
))
apollo_url = models.URLField(null=True, blank=True, help_text=(
"URL pointing to a public Apollo genome with this track loaded."
Expand Down

0 comments on commit aa1c30e

Please sign in to comment.