Minerals now show their detail. The layout still needs work to get it showing correctly though.
This commit is contained in:
parent
d5867c8d4a
commit
9509d788c0
8 changed files with 101 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue