Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Added default for app_label and model in contenttype query #39

Open
wants to merge 3 commits into
base: feature/django-1.9
Choose a base branch
from

Conversation

qoda
Copy link
Contributor

@qoda qoda commented Nov 14, 2016

Related to Issue #38

@@ -50,6 +50,7 @@ def get_template_names(self):

class ObjectList(ListView):
model = ModelBase
app_label = "jmbo"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't make it a class level attr - just use it as the second arg to kwargs.get.

This code looks weird in any case - it's very old, but I understand what you need to achieve. With jmbo-listing we're not using ObjectList much anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants