Skip to content

Commit

Permalink
fixes #90, sorting gene_codes for GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Mar 13, 2015
1 parent 710b961 commit 3925bb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion voseq/core/forms.py
Expand Up @@ -29,7 +29,7 @@ class BaseDatasetForm(forms.Form):
empty_label='Choose geneset',
)
gene_codes = forms.ModelMultipleChoiceField(
Genes.objects.all(),
Genes.objects.all().order_by('gene_code'),
label='Check to select your alignment/gene',
required=False,
widget=forms.CheckboxSelectMultiple(),
Expand Down
6 changes: 3 additions & 3 deletions voseq/genbank_fasta/templates/genbank_fasta/index.html
Expand Up @@ -73,11 +73,11 @@ <h3 class="panel-title"><b>Enter the required info to make yourself a FASTA file
<td>
<table class="table table-condensed table-striped">
<tr>
{% for i in form.gene_codes %}
<td>
{{ i }}
{% for i in form.gene_codes %}
{{ i }}&nbsp;&nbsp;&nbsp;&nbsp;
{% endfor %}
</td>
{% endfor %}
</tr>
</table>
</td>
Expand Down

0 comments on commit 3925bb6

Please sign in to comment.