Re: Using sessions key variables as a url argument

2019-03-13 Thread GavinB841
(), name='teams'), ] *In my nav bar in the template: * Team How can I pass that session key argument into this template? Thanks Gavin On Sunday, 10 March 2019 14:57:43 UTC, GavinB841 wrote: > > Hi all, > > I am not sure if this is possible as I could find nothin

Working with pk arguments within an included URL

2019-02-17 Thread GavinB841
Hi, To briefly explained: - I have a main site which provides links to multiple sports club pages. - Currently once clicked it opens the club home page and displays information based on that club by passing in the pk. - I then have many other pages associated to the clubs. e.g. Teams

Re: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread GavinB841
r.location_filter[0]) > > > > I have not tested this solution, but with some minor code changes it > should work like a charm in filtering the club queryset. > > > > *From:* django...@googlegroups.com < > django...@googlegroups.com > *On Behalf Of *GavinB841 >

Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread GavinB841
Hi all, If anyone could help or point me in the direction of some documentation for the below problem I am having I would really appreciate it. Just to explain quickly: 1. I have a model called "Team" which contains a foreign key to another model called "Club" 2. The "Club" model cont

Passing pk arguments from a URL into another view

2019-02-02 Thread GavinB841
*Hi all,* *I am having issues using arguments from a URL in another view, I have reached out on stackover flow with no success, i believe i am wording this question poorly.* *To quickly explain * - *I have a main site which shows a list of sports clubs. When the user selects on one it r