From dfb4df89e3da1d1e282498538f611a682b3266b4 Mon Sep 17 00:00:00 2001 From: Jeff Balogh Date: Thu, 22 Oct 2009 15:36:39 -0700 Subject: [PATCH] addons app --- apps/addons/__init__.py | 0 apps/addons/models.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 apps/addons/__init__.py create mode 100644 apps/addons/models.py diff --git a/apps/addons/__init__.py b/apps/addons/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/apps/addons/models.py b/apps/addons/models.py new file mode 100644 index 0000000000..d68387d875 --- /dev/null +++ b/apps/addons/models.py @@ -0,0 +1,16 @@ +from django.db import models + +import amo +from users.models import User + + +class Addon(amo.LegacyModel): + name = amo.TranslatedField() + users = models.ManyToManyField(User) + + class Meta: + db_table = 'addons' + + def get_absolute_url(self): + # XXX: use reverse + return '/addon/%s' % self.id