|
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
-from coin.isp_database.models import ISPInfo, RegisteredOffice, OtherWebsite, ChatRoom, CoveredArea
|
|
|
+from coin.isp_database.models import ISPInfo, RegisteredOffice, OtherWebsite, ChatRoom, CoveredArea, BankInfo
|
|
|
|
|
|
|
|
|
class SingleInstanceAdminMixin(object):
|
|
@@ -38,6 +38,19 @@ class CoveredAreaInline(admin.StackedInline):
|
|
|
extra = 0
|
|
|
|
|
|
|
|
|
+class BankInfoInline(admin.StackedInline):
|
|
|
+ model = BankInfo
|
|
|
+ extra = 0
|
|
|
+
|
|
|
+ fieldsets = (('', {
|
|
|
+ 'fields': ('iban', 'bic', 'bank_name'),
|
|
|
+ 'description': (
|
|
|
+ 'Les coordonnées bancaires ne font pas partie de la'+
|
|
|
+ ' spécification db.ffdn.org mais sont utilisées par le'+
|
|
|
+ ' site (facturation notamment).')
|
|
|
+ }),)
|
|
|
+
|
|
|
+
|
|
|
class ISPInfoAdmin(SingleInstanceAdminMixin, admin.ModelAdmin):
|
|
|
model = ISPInfo
|
|
|
fieldsets = (
|
|
@@ -53,7 +66,7 @@ class ISPInfoAdmin(SingleInstanceAdminMixin, admin.ModelAdmin):
|
|
|
'website')}),
|
|
|
)
|
|
|
|
|
|
- inlines = (RegisteredOfficeInline, OtherWebsiteInline, ChatRoomInline,
|
|
|
+ inlines = (RegisteredOfficeInline, BankInfoInline, OtherWebsiteInline, ChatRoomInline,
|
|
|
CoveredAreaInline)
|
|
|
save_on_top = True
|
|
|
|