Re: How to display a table (with full functionalities like sorting, num rows etc) within a cell?

2012-05-19 Thread Daniel Svonava
I don't think that this is easily doable, you would have to tweak both the 
views and templates. However, whenever I think that a nested table would be 
usable, I try to achieve the same functionality by implementing 
filters/search on the models I'd like to see nested.

In your case, just add filtering (by customer)/searching on the User model, 
and browse that directly.

Daniel

On Saturday, May 19, 2012 3:33:57 PM UTC+2, Aditya Sriram M wrote:
>
> I have an admin site with two models, Customer and Users with one-to-many 
> relationship.
>
> Now when I display the customer in admin site, I wanted to display it's 
> Users in a table format. Basic HTML formatted table works fine but its too 
> rugged and not very attractive.
> Note: I do this by manually putting the  for column headers and 
>  for each of the elements in a row. 
>
> What are the options to display the users in a good table with all 
> functionalities?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/FztsDXxa8Q0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to display a table (with full functionalities like sorting, num rows etc) within a cell?

2012-05-19 Thread Aditya Sriram M
I have an admin site with two models, Customer and Users with one-to-many 
relationship.

Now when I display the customer in admin site, I wanted to display it's 
Users in a table format. Basic HTML formatted table works fine but its too 
rugged and not very attractive.
Note: I do this by manually putting the  for column headers and 
 for each of the elements in a row. 

What are the options to display the users in a good table with all 
functionalities?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/XG7sIY0hBMYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.