Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (10 sloc) 0.389 kB
from stdnet import odm
class Element(odm.StdModel):
name = odm.SymbolField()
class CompositeElement(odm.StdModel):
weight = odm.FloatField()
class Composite(odm.StdModel):
name = odm.SymbolField()
elements = odm.ManyToManyField(Element,
through = CompositeElement,
related_name = 'composites')
Jump to Line
Something went wrong with that request. Please try again.