Comments (8)
the error persists, it seems to be a django error
from django-admin-interface.
@zN3utr4l could you try please to disable the tabbed fieldset option to check if the problem is present even with the default fieldset?
from django-admin-interface.
even without the tabbed fieldset the first fieldset block has no form, maybe it's a django related error?
from django-admin-interface.
@zN3utr4l if the problem persists even without the tabbed subset there are two possibilities:
- you are doing something wrong
- it's a django related error
Maybe you can try to reduce what you are doing to a minimal test to understand the cause.
from django-admin-interface.
Maybe you can try to reduce what you are doing to a minimal test to understand the cause
admin.py
readonly_fields = ('test_btn', 'test_btn2')
fieldsets = (
('test', {
'classes': ('collapse', 'expanded'),
'fields': ('test_btn',)
}),
('test2', {
'classes': ('collapse', 'expanded'),
'fields': ('test_btn2',)
})
)
def test_btn(self, obj):
return format_html('<input type="submit" value="test_btn" name="_test_btn">')
def test_btn2(self, obj):
return format_html('<input type="submit" value="test_btn2" name="_test_btn2">')
templates/admin/includes/fieldset.html
wrap all code in:
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}{% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.model_name }}_form" novalidate>{% csrf_token %}{% block form_top %}{% endblock %}
</form>
if show_fieldsets_as_tabs templates/admin/change_form.html
wrap this code:
<div id="tabcontent-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tabcontent {{ forloop.counter0|default:'active' }}">
{% include "admin/includes/headerless_fieldset.html" %}
</div>
from django-admin-interface.
The problem is that {% block form_top %}{% endblock %}
is rendered empty only for the last fieldset right?
from django-admin-interface.
No, the problem is the first fieldset, only {% csrf_token %}
is rendered
From this image you can see all fieldsets enclosed in the form except the first one
from django-admin-interface.
If you remove "admin_interface"
from settings.INSTALLED_APPS
, does this problem persists?
from django-admin-interface.
Related Issues (20)
- Improved style for userlink block HOT 5
- Language Chooser dropdown keeps style across different OS HOT 11
- Fiedsets as tabs CSS issue HOT 6
- Unicode Characters Not Slugified Properly in Inlines Tabs HOT 1
- "support show_change_link with related modal" feature is missing since version 0.20.0 HOT 4
- Language chooser is broken with `prefix_default_language=False` HOT 2
- Filter Input Fields collapsing on different layouts HOT 1
- Adding Support for `django-rosetta` Package HOT 1
- TemplateDoesNotExist with use django-nested-admin HOT 2
- Bug in display of related links with autocomplete fields HOT 5
- django.db.utils.ProgrammingError: relation "admin_interface_theme" does not exist HOT 2
- Unnecessary warning for missing django.middleware.locale.LocaleMiddleware if using customized middleware HOT 4
- Enable possibility to use a static file as logo HOT 18
- Object of type Theme is not JSON serializable HOT 20
- The default View Site link not showing in the mobile version HOT 1
- Popup window freezes in Chrome after save HOT 4
- Django admin date_hierarchy linking is not working anymore HOT 6
- Related modal window includes the header. HOT 4
- Serving static files with Amazon S3 and signed querystring problem
- Multi tenancy support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-admin-interface.