Skip to content

Commit

Permalink
fix type_species
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Sep 10, 2015
1 parent 0855e08 commit f6578f0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Expand Up @@ -51,7 +51,7 @@ <h3>Specify the values for the fields you want to change</h3>
<tr>

<td><b>Type species?</b></td>
<td>{{ form.typeSpecies }}</td>
<td>{{ form.type_species }}</td>

<td><b>Sex:</b></td>
<td>{{ form.sex }}</td>
Expand Down
6 changes: 3 additions & 3 deletions voseq/public_interface/forms.py
Expand Up @@ -85,8 +85,8 @@ class AdvancedSearchForm(ModelSearchForm):
subspecies = forms.CharField(label="Subspecies", max_length=100, required=False)
country = forms.CharField(label="Country", max_length=100, required=False)
specificLocality = forms.CharField(label="Specific Locality", max_length=250, required=False)
typeSpecies = forms.ChoiceField(label="Type species", choices=TYPE_SPECIES_CHOICES,
widget=forms.Select(attrs={'class': 'form-control'}), required=False)
type_species = forms.ChoiceField(label="Type species", choices=TYPE_SPECIES_CHOICES,
widget=forms.Select(attrs={'class': 'form-control'}), required=False)
latitude = forms.FloatField(label="Latitude", required=False)
longitude = forms.FloatField(label="Longitude", required=False)
max_altitude = forms.IntegerField(label="Maximum altitude", required=False)
Expand Down Expand Up @@ -263,7 +263,7 @@ class Meta:
subspecies = forms.CharField(label="Subspecies", max_length=100, required=False)
country = forms.CharField(label="Country", max_length=100, required=False)
specificLocality = forms.CharField(label="Specific Locality", max_length=250, required=False)
typeSpecies = forms.ChoiceField(label="Type species", choices=TYPE_SPECIES_CHOICES, widget=forms.Select, required=False)
type_species = forms.ChoiceField(label="Type species", choices=TYPE_SPECIES_CHOICES, widget=forms.Select, required=False)
latitude = forms.FloatField(label="Latitude", required=False)
longitude = forms.FloatField(label="Longitude", required=False)
max_altitude = forms.IntegerField(label="Maximum altitude", required=False)
Expand Down
2 changes: 1 addition & 1 deletion voseq/public_interface/search_indexes.py
Expand Up @@ -103,7 +103,7 @@ class VouchersIndex(indexes.SearchIndex, indexes.Indexable):
publishedIn = indexes.EdgeNgramField(model_attr='published_in', null=True)
notes = indexes.EdgeNgramField(model_attr='notes', null=True)
hostorg = indexes.CharField(model_attr='hostorg', null=True)
typeSpecies = indexes.CharField(model_attr='type_species', null=True)
type_species = indexes.CharField(model_attr='type_species', null=True)

def get_model(self):
return Vouchers
Expand Down
Expand Up @@ -85,7 +85,7 @@ <h3 class="panel-title"><b>Search by taxonomy</b></h3>
<td>{{ form.subtribe }}</td>

<td><b>Type species?</b></td>
<td>{{ form.typeSpecies }}</td>
<td>{{ form.type_species }}</td>
</tr>
</table>
</div><!-- panel -->
Expand Down
Expand Up @@ -60,11 +60,11 @@ <h3 class="panel-title"><b>Sequence</b></h3>
<tr>
<td><b>Type Species:</b></td>
<td>
{% if voucher.typeSpecies == 'd' %}
{% if voucher.type_species == 'd' %}
don't know
{% elif voucher.typeSpecies == 'y' %}
{% elif voucher.type_species == 'y' %}
yes
{% elif voucher.typeSpecies == 'n' %}
{% elif voucher.type_species == 'n' %}
no
{% endif %}
</td>
Expand Down
Expand Up @@ -106,7 +106,7 @@ <h3 class="panel-title"><b>Specimen name</b></h3>

<td><b>Type species?</b></td>
<td>
{{ voucher.typeSpecies }}
{{ voucher.type_species }}
</td>
</tr>
</table>
Expand Down
Expand Up @@ -10,7 +10,7 @@
{{ object.subspecies }}
{{ object.hostorg }}
{{ object.author }}
{{ object.typeSpecies }}
{{ object.type_species }}
{{ object.country }}
{{ object.voucher }}
{{ object.determinedBy }}
Expand Down

0 comments on commit f6578f0

Please sign in to comment.