Add view displaying all 3rd party apps and packages' licenses.

This commit is contained in:
Roberto Rosario
2015-09-23 03:32:14 -04:00
parent 59ae20a867
commit 6480489086
15 changed files with 1350 additions and 43 deletions
+13
View File
@@ -149,3 +149,16 @@ class Filter(object):
return queryset
else:
return queryset
class Package(object):
_registry = []
@classmethod
def get_all(cls):
return cls._registry
def __init__(self, label, license_text):
self.label = label
self.license_text = license_text
self.__class__._registry.append(self)