Minerals now show their detail. The layout still needs work to get it showing correctly though.

This commit is contained in:
2014-01-21 23:54:09 +10:00
parent d5867c8d4a
commit 9509d788c0
8 changed files with 101 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ class Category(CommonInfo):
@property
def active_samples(self):
return self.samples.filter(active=True).order_by('name')
return self.samples.select_subclasses(Sample, Mineral).filter(active=True).order_by('name')
class Sample(CommonInfo):