Discussion:
How to move readonly_fields on top of page?
Karol Ołtarzewski
6 years ago
Permalink
Good morning guys.

I have a problem namely:
I have to place readonly_fields on top of
/admin/<something>/<something>/change page, higher than normal fields.
I was looking through docs and I can't find proper function to achieve that.

What I have to do to reach my goal?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d680835-393a-4011-8599-495ef8d3da29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joel
6 years ago
Permalink
Explain. What do you mean move on top of page?
...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_-9u1HAJCsDh00YzCUR2ONQ6MJOW7kvT5fEPYShtr1Khw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Shashank Singh
6 years ago
Permalink
Override fields and add readonly_fields first.
...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD-d1sab3PRLxFXdsr9DGYpnqLK9B0veKMM2yqfWxhWOuipxiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Karol Ołtarzewski
6 years ago
Permalink
I want to place normal fields below readonly_fields
...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF5bKVzRMHaEiWU3bpxTRXougkF0NQVbk-5oCj6dJ2jH3D1RwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Shashank Singh
6 years ago
Permalink
fields = ['a', 'b', 'c']
readonly_fields = ['a', 'b']
A and b will appear before c.
...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD-d1sbjZR%3DycjN7ePBiLhiNvbyD1UF961Hg8NLdg_k30j_%2Byg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Nelson Varela
6 years ago
Permalink
Yeah. If you define read only fields in django model admin it places the
read only fields after non-readonly fields by default in the change view
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/973221ba-1df3-40e6-ab1e-45b5d2773cb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for 'How to move readonly_fields on top of page?' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 18 years ago
software
Loading...