nebucatnetzer, 2 months ago Does someone using #Django have any experience with django-tables2?
Does someone using #Django have any experience with django-tables2?
greg, 2 months ago @nebucatnetzer I'm using it in a project or two.
@nebucatnetzer I'm using it in a project or two.
nebucatnetzer, 2 months ago @greg I have this table: https://github.com/Nebucatnetzer/network_inventory/blob/add-login-model/src/users/tables.py#L17 And try to add these two columns but I'm stuck: https://github.com/Nebucatnetzer/network_inventory/blob/add-login-model/src/users/tables.py#L17-L22 Models are here: https://github.com/Nebucatnetzer/network_inventory/tree/add-login-model/src/users/models The idea is to display all the logins and groups a user belongs to in table. Would be fantastic if you knew how to do this.
@greg I have this table: https://github.com/Nebucatnetzer/network_inventory/blob/add-login-model/src/users/tables.py#L17
And try to add these two columns but I'm stuck: https://github.com/Nebucatnetzer/network_inventory/blob/add-login-model/src/users/tables.py#L17-L22
Models are here: https://github.com/Nebucatnetzer/network_inventory/tree/add-login-model/src/users/models
The idea is to display all the logins and groups a user belongs to in table. Would be fantastic if you knew how to do this.
greg, 2 months ago @nebucatnetzer not at my Mac right now so looking on my phone but I don’t see accessor as a param on manytomany column according to the api. https://django-tables2.readthedocs.io/en/latest/pages/api-reference.html#django_tables2.columns.ManyToManyColumn
@nebucatnetzer not at my Mac right now so looking on my phone but I don’t see accessor as a param on manytomany column according to the api.
accessor
https://django-tables2.readthedocs.io/en/latest/pages/api-reference.html#django_tables2.columns.ManyToManyColumn
greg, 2 months ago @nebucatnetzer I’ll pull my code when I get back to my Mac and show how I have it
@nebucatnetzer I’ll pull my code when I get back to my Mac and show how I have it
Add comment