Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Classbased generic view and Fix "'test_book" table is not found" issue on test #52

Closed
wants to merge 2 commits into from

Conversation

lambdalisue
Copy link

Add classbased generic view called FilterView to django_filters.generic.classbased module and move functional generic view called object_filter to django_filters.generic.functional module. These view are linked in django_filters.views module so you can use django_filters.views.object_filter or django_filters.views.FilterView.

Add test for classbased generic view and fix a lot of issue for testing
django_filters. Now you can test django_filters with any Django app
because when testing, django_filters automatically add
django_filters.tests to INSTALLED_APPS so no more 'test_book table is
not found' issue!

Fix Date depends test issue as well. Some docstring test depends on the
date test executed.

Add classbased generic view called 'FilterView' to
'django_filters.generic.classbased' module and move functional 'object_filter'
view to 'django_filters.generic.functional' module. These view are
linked in 'views' module so you can use
'django_filters.views.object_filter' or
'django_filters.views.FilterView'.

Add test for classbased generic view and fix a lot of issue for testing
django_filters. Now you can test django_filters with any Django app
because when testing, django_filters automatically add
'django_filters.tests' to installed_apps so no more 'test_book table is
not found' issue!

Fix Date depends test issue as well. Some docstring test depends on the
date test executed.
@tomchristie
Copy link
Contributor

I think this needs a few tweaks, will try to properly review soon.

@apollo13
Copy link
Contributor

Hmm, just make sure there are no license issues, I am surely not commiting this code with the apache license header ;)

nkryptic added a commit to nkryptic/django-filter that referenced this pull request Jan 20, 2013
…mbdalisue

* based upon Django's ListView
* docs updated and deprecate `object_filter` functional view
* `object_filter` is now basically a wrapper for the CBV
* added a `filterset_factory` to filterset.py
@apollo13
Copy link
Contributor

apollo13 commented Feb 2, 2013

Was fixed as part of #72

@apollo13 apollo13 closed this Feb 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants