-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2899] Integrate OpenKlantConfig and OpenKlant2Config #1520
base: develop
Are you sure you want to change the base?
Conversation
6e72745
to
33b0d88
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1520 +/- ##
===========================================
- Coverage 94.13% 94.12% -0.02%
===========================================
Files 1064 1065 +1
Lines 39286 39319 +33
===========================================
+ Hits 36982 37008 +26
- Misses 2304 2311 +7 ☔ View full report in Codecov by Sentry. |
33b0d88
to
35c4bed
Compare
@swrichards Keeping the |
@pi-sigma I am happy making the field nullable. The general problem we have is that we want to know if the eSuite/OK2 service is correctly configured, and that does not play nice with
Arguably we could also do this in the validation step for the global ok admin: if ok2 is selected there, you get a warning to first configure a service. |
<ul> | ||
<li><a href="{% url 'admin:openklant_openklantconfig_change' %}">Configure eSuite backend</a></li> | ||
<li><a href="{% url 'admin:openklant_openklant2config_change' %}">Configure OpenKlant2 backend</a></li> | ||
</ul> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect we could solve this by using a combination of the @admin.display
/readonly_fields
attribute (docs): there will be no list page (because singleton), but the read only fields should still be display in the singleton detail page. Arguably less complex than tweaking the template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played with @admin.display
but couldn't get it to do what's needed without modifying the templates anyway. Also, compare:
- want to customize detail page -> customize template for detail page
- want to customize detail page -> use
@admin.display
to customize list page; although there is no list page, the strategy can still be used to change detail page indirectly
The first is less complex. Unless I'm missing something about the use of the decorator?
No description provided.