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

Commit 2623c6d

Browse files
authored
Merge pull request #23 from dipcode-software/feat/name-refactor
Feat/name refactor
2 parents 3f8eecb + 01b858e commit 2623c6d

File tree

15 files changed

+24
-24
lines changed

15 files changed

+24
-24
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[run]
2-
source=ajax_views/
2+
source=ajax_cbv/
33
branch=True
44
omit=
55
*tests*

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include LICENSE
22
include README.md
3-
recursive-include ajax_views/static *
3+
recursive-include ajax_cbv/static *

README.rst

Lines changed: 10 additions & 10 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`_;
@@ -16,17 +16,17 @@ To install the app run :
1616

1717
.. code:: shell
1818
19-
pip install django-ajax-views
19+
pip install django-ajax-cbv
2020
2121
or add it to the list of requirements of your project.
2222

23-
Then add ‘ajax\_views’ to your INSTALLED\_APPS.
23+
Then add ‘ajax\_cbv’ to your INSTALLED\_APPS.
2424

2525
.. code:: python
2626
2727
INSTALLED_APPS = [
2828
...
29-
'ajax_views',
29+
'ajax_cbv',
3030
]
3131
3232
License
@@ -39,10 +39,10 @@ projects and commercial products.
3939
.. _License: #license
4040

4141
.. |Build Status| image:: https://travis-ci.org/dipcode-software/django-ajax-views.svg?branch=master
42-
:target: https://travis-ci.org/dipcode-software/django-ajax-views
42+
:target: https://travis-ci.org/dipcode-software/django-ajax-cbv
4343
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/a64f03c2bd344561bc21e05c23aa04fb
44-
:target: https://www.codacy.com/app/srtabs/django-ajax-views?utm_source=github.com&utm_medium=referral&utm_content=dipcode-software/django-ajax-views&utm_campaign=Badge_Grade
45-
.. |Coverage Status| image:: https://coveralls.io/repos/github/dipcode-software/django-ajax-views/badge.svg?branch=master
46-
:target: https://coveralls.io/github/dipcode-software/django-ajax-views?branch=master
47-
.. |BCH compliance| image:: https://bettercodehub.com/edge/badge/dipcode-software/django-ajax-views?branch=master
44+
:target: https://www.codacy.com/app/srtabs/django-ajax-cbv?utm_source=github.com&utm_medium=referral&utm_content=dipcode-software/django-ajax-cbv&utm_campaign=Badge_Grade
45+
.. |Coverage Status| image:: https://coveralls.io/repos/github/dipcode-software/django-ajax-cbv/badge.svg?branch=master
46+
:target: https://coveralls.io/github/dipcode-software/django-ajax-cbv?branch=master
47+
.. |BCH compliance| image:: https://bettercodehub.com/edge/badge/dipcode-software/django-ajax-cbv?branch=master
4848
:target: https://bettercodehub.com/

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.AjaxCBVConfig'
66

77
__version__ = '0.1.0'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from django.apps import AppConfig
44

55

6-
class AjaxViewsConfig(AppConfig):
7-
name = 'ajax_views'
6+
class AjaxCBVConfig(AppConfig):
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.

runtests.py

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

88
settings.configure(
99
INSTALLED_APPS=(
10-
'ajax_views',
10+
'ajax_cbv',
1111
),
1212
)
1313

1414
if __name__ == "__main__":
1515
django.setup()
1616
runner = DiscoverRunner()
17-
failures = runner.run_tests(['ajax_views'])
17+
failures = runner.run_tests(['ajax_cbv'])
1818
if failures:
1919
sys.exit(failures)

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111

1212
# Package meta-data.
13-
VERSION = __import__("ajax_views").__version__
14-
NAME = 'django-ajax-partials'
13+
VERSION = __import__("ajax_cbv").__version__
14+
NAME = 'django-ajax-cbv'
1515
DESCRIPTION = 'Django module to easily use generic views with ajax. '
16-
URL = 'https://github.com/dipcode-software/django-ajax-partials/'
16+
URL = 'https://github.com/dipcode-software/django-ajax-cbv/'
1717
EMAIL = 'team@dipcode.com'
1818
AUTHOR = 'Dipcode'
1919

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ commands = {envpython} runtests.py
88

99
[testenv:flake8]
1010
deps = flake8
11-
commands = flake8 {toxinidir}/ajax_views --exclude=*/migrations/*
11+
commands = flake8 {toxinidir}/ajax_cbv --exclude=*/migrations/*
1212

1313
[testenv:coverage]
1414
deps=

0 commit comments

Comments
 (0)