diff --git a/djadmin2/models.py b/djadmin2/models.py index f18fe59..e844dca 100644 --- a/djadmin2/models.py +++ b/djadmin2/models.py @@ -153,7 +153,7 @@ class ModelAdmin2(BaseAdmin2): name='index' ), url( - regex=r'^create/$', + regex=r'^create/$', view=self.create_view.as_view(**self.get_create_kwargs()), name='create' ), diff --git a/djadmin2/templates/admin2/bootstrap/index.html b/djadmin2/templates/admin2/bootstrap/index.html index 8c89a34..c9fc3ad 100644 --- a/djadmin2/templates/admin2/bootstrap/index.html +++ b/djadmin2/templates/admin2/bootstrap/index.html @@ -4,7 +4,7 @@

Index

{% for modeladmin in registry.values %} - + {% endfor %}
{{ modeladmin.verbose_name_plural }}
{{ modeladmin.verbose_name_plural }}
{% endblock content %} diff --git a/djadmin2/templates/admin2/monkey/base.html b/djadmin2/templates/admin2/monkey/base.html deleted file mode 100644 index 7dc1d27..0000000 --- a/djadmin2/templates/admin2/monkey/base.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - -{% block content %} - -{% endblock content %} - - - \ No newline at end of file diff --git a/djadmin2/templates/admin2/monkey/index.html b/djadmin2/templates/admin2/monkey/index.html deleted file mode 100644 index 5322cbb..0000000 --- a/djadmin2/templates/admin2/monkey/index.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "admin2/monkey/base.html" %} - -{% block content %} - -{% for app in object_list %} - - - - - - - - - - {% for model in app.obj.models %} - - - - - {% endfor %} - -
{{ app.app_name.title }}
{{ model.name }}
-{% endfor %} - -{% endblock content %} \ No newline at end of file diff --git a/djadmin2/templates/admin2/monkey/model_list.html b/djadmin2/templates/admin2/monkey/model_list.html deleted file mode 100644 index e69de29..0000000