|
21 | 21 | (1, "The licensing declaration is limited solely to standards-track IETF documents."), |
22 | 22 | ) |
23 | 23 | SELECT_CHOICES = ( |
24 | | - ("0", 'NO'), |
25 | | - ("1", 'YES'), |
26 | | - ("2", 'NO'), |
27 | | - (0, 'NO'), # with new schema, choices are really numeric |
| 24 | + (0, 'NO'), |
28 | 25 | (1, 'YES'), |
29 | 26 | (2, 'NO'), |
30 | 27 | ) |
|
34 | 31 | ( 2, "Rejected by Administrator" ), |
35 | 32 | ( 3, "Removed by Request" ), |
36 | 33 | ) |
37 | | -# not clear why this has both an ID and selecttype |
38 | | -# Also not clear why a table for "YES" and "NO". |
39 | | -class IprSelecttype(models.Model): |
40 | | - type_id = models.AutoField(primary_key=True) |
41 | | - is_pending = models.IntegerField(unique=True, db_column="selecttype") |
42 | | - type_display = models.CharField(blank=True, max_length=15) |
43 | | - def __unicode__(self): |
44 | | - return self.type_display |
45 | | - |
46 | | -class IprLicensing(models.Model): |
47 | | - licensing_option = models.AutoField(primary_key=True) |
48 | | - value = models.CharField(max_length=255, db_column='licensing_option_value') |
49 | | - def __unicode__(self): |
50 | | - return self.value; |
51 | | - |
52 | 34 |
|
53 | 35 | class IprDetail(models.Model): |
54 | 36 | ipr_id = models.AutoField(primary_key=True) |
@@ -85,7 +67,6 @@ class IprDetail(models.Model): |
85 | 67 | applies_to_all = models.IntegerField("Applies to all IPR owned by Submitter", blank=True, null=True, choices=SELECT_CHOICES, db_column="selectowned") |
86 | 68 |
|
87 | 69 | # Licensing Declaration fieldset |
88 | | - #licensing_option = models.ForeignKey(IprLicensing, db_column='licensing_option') |
89 | 70 | licensing_option = models.IntegerField(null=True, blank=True, choices=LICENSE_CHOICES) |
90 | 71 | lic_opt_a_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES) |
91 | 72 | lic_opt_b_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES) |
|
0 commit comments