Skip to content
Snippets Groups Projects

Add source and sequence fields to Gene model

Merged Kenzo-Hugo Hillion requested to merge 96-sequences-source-in-genes into dev
3 files
+ 35
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -7,7 +7,8 @@ from metagenedb.apps.catalog.models import Gene
@@ -7,7 +7,8 @@ from metagenedb.apps.catalog.models import Gene
class GeneAdmin(admin.ModelAdmin):
class GeneAdmin(admin.ModelAdmin):
exclude = ('functions', 'taxonomy')
exclude = ('functions', 'taxonomy')
list_display = ('gene_id', 'name', 'length', 'get_functions', 'get_taxonomy')
list_display = ('gene_id', 'source', 'name', 'length', 'get_functions', 'get_taxonomy')
 
list_filter = ('source',)
search_fields = ('name',)
search_fields = ('name',)
def get_functions(self, obj):
def get_functions(self, obj):
Loading