Skip to content

Commit

Permalink
Cleaner fix to model import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Dec 18, 2012
1 parent 3cad81c commit 5d1e580
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/lib/dictization/model_dictize.py
@@ -1,7 +1,6 @@
import datetime
from pylons import config
from sqlalchemy.sql import select
import ckan.model
import ckan.misc as misc
import ckan.logic as logic
import ckan.plugins as plugins
Expand Down Expand Up @@ -266,7 +265,7 @@ def package_dictize(pkg, context):

# Extra properties from the domain object
# We need an actual Package object for this, not a PackageRevision
if isinstance(pkg, ckan.model.PackageRevision):
if isinstance(pkg, model.PackageRevision):
pkg = model.Package.get(pkg.id)

# isopen
Expand Down

0 comments on commit 5d1e580

Please sign in to comment.