Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created October 26, 2011 20:54
Show Gist options
  • Save andymckay/1317816 to your computer and use it in GitHub Desktop.
Save andymckay/1317816 to your computer and use it in GitHub Desktop.
from django.shortcuts import get_object_or_404
import amo
app_slug = 'test-webapp-2'
get_object_or_404(Addon, type=amo.ADDON_WEBAPP, app_slug=app_slug, disabled_by_user=False, status__in=amo.VALID_STATUSES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment