Discussion:
How to move readonly_fields on top of page?
Karol Ołtarzewski
2018-11-04 21:02:22 UTC
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
2018-11-05 06:07:50 UTC
Permalink
Explain. What do you mean move on top of page?
Post by Karol Ołtarzewski
Good morning guys.
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
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
<https://groups.google.com/d/msgid/django-users/2d680835-393a-4011-8599-495ef8d3da29%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
2018-11-05 06:16:13 UTC
Permalink
Override fields and add readonly_fields first.
Post by Joel
Explain. What do you mean move on top of page?
Post by Karol Ołtarzewski
Good morning guys.
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
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
<https://groups.google.com/d/msgid/django-users/2d680835-393a-4011-8599-495ef8d3da29%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
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
<https://groups.google.com/d/msgid/django-users/CAA%3Diw_-9u1HAJCsDh00YzCUR2ONQ6MJOW7kvT5fEPYShtr1Khw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
2018-11-05 14:32:55 UTC
Permalink
I want to place normal fields below readonly_fields
Post by Joel
Explain. What do you mean move on top of page?
Post by Karol Ołtarzewski
Good morning guys.
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
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
<https://groups.google.com/d/msgid/django-users/2d680835-393a-4011-8599-495ef8d3da29%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
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
<https://groups.google.com/d/msgid/django-users/CAA%3Diw_-9u1HAJCsDh00YzCUR2ONQ6MJOW7kvT5fEPYShtr1Khw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
2018-11-05 14:35:48 UTC
Permalink
fields = ['a', 'b', 'c']
readonly_fields = ['a', 'b']
A and b will appear before c.
Post by Karol Ołtarzewski
I want to place normal fields below readonly_fields
Post by Joel
Explain. What do you mean move on top of page?
Post by Karol Ołtarzewski
Good morning guys.
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
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
<https://groups.google.com/d/msgid/django-users/2d680835-393a-4011-8599-495ef8d3da29%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
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
<https://groups.google.com/d/msgid/django-users/CAA%3Diw_-9u1HAJCsDh00YzCUR2ONQ6MJOW7kvT5fEPYShtr1Khw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
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
<https://groups.google.com/d/msgid/django-users/CAF5bKVzRMHaEiWU3bpxTRXougkF0NQVbk-5oCj6dJ2jH3D1RwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
2018-11-05 08:02:03 UTC
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 2006-10-11 00:02:47 UTC
software
Loading...