Scott Baker | d87c02a | 2018-10-29 16:24:29 -0700 | [diff] [blame] | 1 | option app_label = "core"; |
| 2 | |
| 3 | message XOSBase { |
| 4 | optional string base_field = 2 [default = "stuff", max_length = 1024]; |
| 5 | optional string base_field2 = 3 [default = "stuff", max_length = 1024]; |
| 6 | } |
| 7 | |
| 8 | message Intermediate1(XOSBase) { |
| 9 | } |
| 10 | |
| 11 | message Leaf1a(Intermediate1) { |
| 12 | } |
| 13 | |
| 14 | message Leaf1b(Intermediate1) { |
| 15 | } |
| 16 | |
| 17 | |
| 18 | message Intermediate2(XOSBase) { |
| 19 | } |
| 20 | |
| 21 | message Leaf2(Intermediate2) { |
| 22 | } |
| 23 | |
| 24 | message RelatedToIntermediate1(XOSBase) { |
| 25 | required manytoone int1->Intermediate1:rel_int1s = 2:1001 [help_text = "The Intermediate1 this model is attached to", null = False, db_index = True, blank = False]; |
| 26 | } |
| 27 | |
| 28 | message RelatedToLeaf1a(XOSBase) { |
| 29 | required manytoone leaf1a->Leaf1a:rel_leaf1as = 2:1001 [help_text = "The Leaf1a this model is attached to", null = False, db_index = True, blank = False]; |
| 30 | } |
| 31 | |
| 32 | message RelatedToLeaf1b(XOSBase) { |
| 33 | required manytoone leaf1b->Leaf1b:rel_leaf1bs = 2:1001 [help_text = "The Leaf1b this model is attached to", null = False, db_index = True, blank = False]; |
| 34 | } |
| 35 | |
| 36 | message RelatedToIntermediate2(XOSBase) { |
| 37 | required manytoone int2->Intermediate2:rel_int2s = 2 [help_text = "The Intermediate2 this model is attached to", null = False, db_index = True, blank = False]; |
| 38 | } |
| 39 | |
| 40 | message RelatedToLeaf2(XOSBase) { |
| 41 | required manytoone leaf2->Leaf2:rel_leaf2s = 2 [help_text = "The Leaf2 this model is attached to", null = False, db_index = True, blank = False]; |
| 42 | } |