Skip to content
Snippets Groups Projects
Commit 23fc4050 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'master' into wizard_form

parents d2c4c846 97a152e1
No related branches found
No related tags found
1 merge request!1Wizard form
...@@ -70,6 +70,9 @@ class TextActivityDescription(admin.ModelAdmin): ...@@ -70,6 +70,9 @@ class TextActivityDescription(admin.ModelAdmin):
@admin.register(Ppi) @admin.register(Ppi)
class PpiModelAdmin(admin.ModelAdmin): class PpiModelAdmin(admin.ModelAdmin):
filter_horizontal = ('diseases',) filter_horizontal = ('diseases',)
list_display = ('pdb_id', 'name', 'symmetry', 'family')
list_filter = ('diseases',)
search_fields = ('pdb_id', 'name', 'symmetry', 'family__name', 'diseases__name')
@admin.register(ProteinDomainComplex) @admin.register(ProteinDomainComplex)
......
This diff is collapsed.
...@@ -1205,6 +1205,9 @@ class RefCompoundBiblio(models.Model): ...@@ -1205,6 +1205,9 @@ class RefCompoundBiblio(models.Model):
class Meta: class Meta:
unique_together = (('compound', 'bibliography'),) unique_together = (('compound', 'bibliography'),)
def __str__(self):
return 'Ref. {} on {}'.format(self.bibliography, self.compound)
class DrugBankCompound(models.Model): class DrugBankCompound(models.Model):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment