Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 19ba434

Browse files
committed
changed ajax_views to ajax_cbv
1 parent 3f8eecb commit 19ba434

File tree

10 files changed

+7
-7
lines changed

10 files changed

+7
-7
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Django Ajax views
1+
Django Ajax CBV
22
=================
33

44
|Build Status| |Codacy Badge| |Coverage Status| |BCH compliance|
55

6-
Django module to easily use generic views with ajax.
6+
Django module to easily use generic Class Based Views with ajax.
77

88
Table of contents:
99
* `How to install`_;

ajax_views/__init__.py renamed to ajax_cbv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
from __future__ import unicode_literals
33

44

5-
default_app_config = 'ajax_views.apps.AjaxViewsConfig'
5+
default_app_config = 'ajax_cbv.apps.AjaxViewsConfig'
66

77
__version__ = '0.1.0'

ajax_views/apps.py renamed to ajax_cbv/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
class AjaxViewsConfig(AppConfig):
7-
name = 'ajax_views'
7+
name = 'ajax_cbv'
File renamed without changes.
File renamed without changes.

ajax_views/tests/test_mixins.py renamed to ajax_cbv/tests/test_mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import json
44

5-
from ajax_views.mixins import (
5+
from ajax_cbv.mixins import (
66
AjaxResponseAction, AjaxResponseMixin, AjaxResponseStatus, FormAjaxMixin,
77
PartialAjaxMixin)
88
from django.forms import Form
@@ -155,7 +155,7 @@ def test_get_context_data_without_partial_title(self):
155155
context = self.view.get_context_data()
156156
self.assertFalse('title' in context)
157157

158-
@patch('ajax_views.mixins.render_to_string',
158+
@patch('ajax_cbv.mixins.render_to_string',
159159
return_value="<html></html>")
160160
def test_render_to_response(self, render_to_string):
161161
result = self.view.render_to_response({})

ajax_views/tests/test_views.py renamed to ajax_cbv/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import unicode_literals
22

3-
from ajax_views.views import DeleteAjaxView
3+
from ajax_cbv.views import DeleteAjaxView
44
from django.test import RequestFactory, SimpleTestCase
55
from mock import Mock, patch
66

File renamed without changes.

0 commit comments

Comments
 (0)