diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-24 08:55:48 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-24 08:55:48 -0500 |
commit | 61b4098c611592d62b40a9ee941976a869dff4fc (patch) | |
tree | 16761d11bd430216c33ffd4abff30a7136295b09 /packages/models.py | |
parent | b1206a4109d3b13b06c3116ef3a2dd6c9e125a1f (diff) |
Add index on package updates pkgname field
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/models.py')
-rw-r--r-- | packages/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/models.py b/packages/models.py index 18a62a3c..5b48b30f 100644 --- a/packages/models.py +++ b/packages/models.py @@ -253,7 +253,7 @@ class Update(models.Model): null=True, on_delete=models.SET_NULL) repo = models.ForeignKey(Repo, related_name="updates") arch = models.ForeignKey(Arch, related_name="updates") - pkgname = models.CharField(max_length=255) + pkgname = models.CharField(max_length=255, db_index=True) pkgbase = models.CharField(max_length=255) action_flag = models.PositiveSmallIntegerField('action flag', choices=UPDATE_ACTION_CHOICES) |