diff --git a/cotisations/payment_methods/__init__.py b/cotisations/payment_methods/__init__.py index 85f2bd53..1efde30b 100644 --- a/cotisations/payment_methods/__init__.py +++ b/cotisations/payment_methods/__init__.py @@ -127,11 +127,11 @@ method to your model, where `form` is an instance of """ -from . import comnpay, cheque, balance, note, urls +from . import comnpay, cheque, balance, note_kfet, urls PAYMENT_METHODS = [ comnpay, cheque, balance, - note + note_kfet ] diff --git a/cotisations/payment_methods/note/__init__.py b/cotisations/payment_methods/note_kfet/__init__.py similarity index 100% rename from cotisations/payment_methods/note/__init__.py rename to cotisations/payment_methods/note_kfet/__init__.py diff --git a/cotisations/payment_methods/note/forms.py b/cotisations/payment_methods/note_kfet/forms.py similarity index 100% rename from cotisations/payment_methods/note/forms.py rename to cotisations/payment_methods/note_kfet/forms.py diff --git a/cotisations/payment_methods/note/models.py b/cotisations/payment_methods/note_kfet/models.py similarity index 97% rename from cotisations/payment_methods/note/models.py rename to cotisations/payment_methods/note_kfet/models.py index 60ed8ad3..be54bd54 100644 --- a/cotisations/payment_methods/note/models.py +++ b/cotisations/payment_methods/note_kfet/models.py @@ -60,6 +60,6 @@ class NotePayment(PaymentMethodMixin, models.Model): def end_payment(self, invoice, request): return redirect(reverse( - 'cotisations:note:note_payment', + 'cotisations:note_kfet:note_payment', kwargs={'factureid': invoice.id} )) diff --git a/cotisations/payment_methods/note/note.py b/cotisations/payment_methods/note_kfet/note.py similarity index 100% rename from cotisations/payment_methods/note/note.py rename to cotisations/payment_methods/note_kfet/note.py diff --git a/cotisations/payment_methods/note/urls.py b/cotisations/payment_methods/note_kfet/urls.py similarity index 100% rename from cotisations/payment_methods/note/urls.py rename to cotisations/payment_methods/note_kfet/urls.py diff --git a/cotisations/payment_methods/note/views.py b/cotisations/payment_methods/note_kfet/views.py similarity index 100% rename from cotisations/payment_methods/note/views.py rename to cotisations/payment_methods/note_kfet/views.py diff --git a/cotisations/payment_methods/urls.py b/cotisations/payment_methods/urls.py index dd6d7726..f6bb31dd 100644 --- a/cotisations/payment_methods/urls.py +++ b/cotisations/payment_methods/urls.py @@ -19,10 +19,10 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from django.conf.urls import include, url -from . import comnpay, cheque, note +from . import comnpay, cheque, note_kfet urlpatterns = [ url(r'^comnpay/', include(comnpay.urls, namespace='comnpay')), url(r'^cheque/', include(cheque.urls, namespace='cheque')), - url(r'^note/', include(note.urls, namespace='note')), + url(r'^note_kfet/', include(note_kfet.urls, namespace='note_kfet')), ]