specifying list_display at runtime

46 views
Skip to first unread message

Ahmed Youssef

unread,
Nov 10, 2015, 12:13:22 PM11/10/15
to Project Camelot

I'm using camelot and now I'm facing this situation (model Movie [title, summary, genre] )

I want the user to choose what fields he wants to get displayed in the main form [controlling list_display in the runtime] instead of specifying list_display in the model

Ahmed Youssef

unread,
Dec 9, 2015, 5:48:36 AM12/9/15
to Project Camelot
Any help?

Jeroen Dierckx

unread,
Dec 9, 2015, 6:59:20 AM12/9/15
to project-camelot
Hello,

I don't think you can manipulate list_display at runtime.
You could create several Admin's (with overridden list_displays) per
Entity to show to different users.
This obviously is a workaround, but maybe it covers your use case(s).

Best regards,
Jeroen
> --
> --
> You received this message because you are subscribed to the "Project
> Camelot" group.
> Visit www.python-camelot.com for more information
>
> To post to this group, send email to project...@googlegroups.com
> To unsubscribe from this group, send email to
> project-camel...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/project-camelot?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Project Camelot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to project-camel...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages