blob: 93b04e35d191f16b7fd9b5739a064ee7fb407cac [file] [log] [blame]
Scott Bakerd87c02a2018-10-29 16:24:29 -07001option app_label = "core";
2
3message 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
8message Intermediate1(XOSBase) {
9}
10
11message Leaf1a(Intermediate1) {
12}
13
14message Leaf1b(Intermediate1) {
15}
16
17
18message Intermediate2(XOSBase) {
19}
20
21message Leaf2(Intermediate2) {
22}
23
24message 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
28message 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
32message 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
36message 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
40message 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}