Skip to content

Commit 7852e09

Browse files
committed
Remove unused IprLicensing and IprSelecttype classes from IPR models
- Legacy-Id: 6778
1 parent 6c56f41 commit 7852e09

2 files changed

Lines changed: 1 addition & 28 deletions

File tree

ietf/ipr/admin.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,10 @@ def docs(self, ipr):
2424
return u", ".join(res)
2525
admin.site.register(IprDetail, IprDetailAdmin)
2626

27-
class IprLicensingAdmin(admin.ModelAdmin):
28-
pass
29-
admin.site.register(IprLicensing, IprLicensingAdmin)
30-
3127
class IprNotificationAdmin(admin.ModelAdmin):
3228
pass
3329
admin.site.register(IprNotification, IprNotificationAdmin)
3430

35-
class IprSelecttypeAdmin(admin.ModelAdmin):
36-
pass
37-
admin.site.register(IprSelecttype, IprSelecttypeAdmin)
38-
3931
class IprUpdateAdmin(admin.ModelAdmin):
4032
pass
4133
admin.site.register(IprUpdate, IprUpdateAdmin)

ietf/ipr/models.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
(1, "The licensing declaration is limited solely to standards-track IETF documents."),
2222
)
2323
SELECT_CHOICES = (
24-
("0", 'NO'),
25-
("1", 'YES'),
26-
("2", 'NO'),
27-
(0, 'NO'), # with new schema, choices are really numeric
24+
(0, 'NO'),
2825
(1, 'YES'),
2926
(2, 'NO'),
3027
)
@@ -34,21 +31,6 @@
3431
( 2, "Rejected by Administrator" ),
3532
( 3, "Removed by Request" ),
3633
)
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-
5234

5335
class IprDetail(models.Model):
5436
ipr_id = models.AutoField(primary_key=True)
@@ -85,7 +67,6 @@ class IprDetail(models.Model):
8567
applies_to_all = models.IntegerField("Applies to all IPR owned by Submitter", blank=True, null=True, choices=SELECT_CHOICES, db_column="selectowned")
8668

8769
# Licensing Declaration fieldset
88-
#licensing_option = models.ForeignKey(IprLicensing, db_column='licensing_option')
8970
licensing_option = models.IntegerField(null=True, blank=True, choices=LICENSE_CHOICES)
9071
lic_opt_a_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES)
9172
lic_opt_b_sub = models.IntegerField(null=True, editable=False, choices=STDONLY_CHOICES)

0 commit comments

Comments
 (0)