diff options
author | Dan McGee <dan@archlinux.org> | 2012-05-18 21:29:03 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-18 21:36:11 -0500 |
commit | 72a92102df4999dbcc370064707c9026d51c4fe7 (patch) | |
tree | 7fe5be4bb93cb677952923899b954cc59e1b5e11 /packages/utils.py | |
parent | cc44fdbea59596daf106e48acdb3f4137988d0d9 (diff) |
Switch to usage of new Depend object
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/utils.py')
-rw-r--r-- | packages/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/utils.py b/packages/utils.py index 8d00bd68..82313472 100644 --- a/packages/utils.py +++ b/packages/utils.py @@ -7,10 +7,10 @@ from django.db import connection from django.db.models import Count, Max, F from django.contrib.auth.models import User -from main.models import Package, PackageDepend, PackageFile, Arch, Repo +from main.models import Package, PackageFile, Arch, Repo from main.utils import cache_function, groupby_preserve_order, PackageStandin from .models import (PackageGroup, PackageRelation, - License, Conflict, Provision, Replacement, + License, Depend, Conflict, Provision, Replacement, SignoffSpecification, Signoff, DEFAULT_SIGNOFF_SPEC) @cache_function(127) @@ -451,7 +451,7 @@ class PackageJSONEncoder(DjangoJSONEncoder): return obj.name.lower() if isinstance(obj, (PackageGroup, License)): return obj.name - if isinstance(obj, (Conflict, Provision, Replacement, PackageDepend)): + if isinstance(obj, (Depend, Conflict, Provision, Replacement)): return unicode(obj) elif isinstance(obj, User): return obj.username |