Commented django_mailer app
This commit is contained in:
parent
1367d9d545
commit
1bb37b1175
|
@ -104,7 +104,7 @@ INSTALLED_APPS = (
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
'passlib.ext.django',
|
'passlib.ext.django',
|
||||||
'django_countries',
|
'django_countries',
|
||||||
'django_mailer',
|
# 'django_mailer',
|
||||||
|
|
||||||
# Django.contrib
|
# Django.contrib
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
|
|
|
@ -180,7 +180,7 @@ admin.site.register(MonitorData, MonitorDataAdmin)
|
||||||
# Mokey-patching
|
# Mokey-patching
|
||||||
|
|
||||||
def resource_inline_factory(resources):
|
def resource_inline_factory(resources):
|
||||||
class ResourceInlineFormSet(contenttype.forms.BaseGenericInlineFormSet):
|
class ResourceInlineFormSet(contenttypes.forms.BaseGenericInlineFormSet):
|
||||||
def total_form_count(self, resources=resources):
|
def total_form_count(self, resources=resources):
|
||||||
return len(resources)
|
return len(resources)
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ def resource_inline_factory(resources):
|
||||||
forms.append(self._construct_form(i, resource=resource))
|
forms.append(self._construct_form(i, resource=resource))
|
||||||
return forms
|
return forms
|
||||||
|
|
||||||
class ResourceInline(contenttype.admin.GenericTabularInline):
|
class ResourceInline(contenttypes.admin.GenericTabularInline):
|
||||||
model = ResourceData
|
model = ResourceData
|
||||||
verbose_name_plural = _("resources")
|
verbose_name_plural = _("resources")
|
||||||
form = ResourceForm
|
form = ResourceForm
|
||||||
|
|
Loading…
Reference in New Issue