Blank field object just for headings in form object

22 views
Skip to first unread message

Shane Fagan

unread,
Sep 4, 2016, 1:34:52 PM9/4/16
to Django users
Hi,

I asked this question on Stackoverflow but didn't get any answers so hopefully someone can give me an answer here. The Stackoverflow is http://stackoverflow.com/questions/39317812/django-forms-form-header-field To start I'm creating fields on the fly for a question sheet project that takes in admin created questions. The issue is I need to do a heading for sections for walking people through the form. 

Any ideas? I was thinking of creating a field object to use but I didn't get much from the docs since it's pretty much a stub that focuses more on overloading the current fields and doing custom validation..etc. 

Regards,
Shane

ludovic coues

unread,
Sep 5, 2016, 5:01:29 AM9/5/16
to django...@googlegroups.com
do you mind to share the model holding the questions created in admin ?
> --
> 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/8abc46b4-6706-45cc-8942-100bb9ada943%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

Vadim Serdiuk

unread,
Sep 5, 2016, 9:12:59 AM9/5/16
to Django users
Ma
I guess you should look at fieldsets https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets

воскресенье, 4 сентября 2016 г., 20:34:52 UTC+3 пользователь Shane Fagan написал:
Reply all
Reply to author
Forward
0 new messages