Re: Create a view form capable of saving data into models through FK

2015-09-25 Thread Elorm Koku
Thanks Gergeley, You jux ended three days of misery. -- Agbeko Frank +233 0243 013 730 -- 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+unsub

Re: Create a view form capable of saving data into models through FK

2015-09-24 Thread Gergely Polonkai
Hello, The most beautiful way (IMHO) is to create a widget type for this. See this answer on SO[1]. I wonder why this is not part of Django yet… [1] http://stackoverflow.com/a/5155576/1305139 On 25 Sep 2015 01:53, "eli" wrote: > Hi Guys, > A noob here, > > I have two models, > > class Students(

Create a view form capable of saving data into models through FK

2015-09-24 Thread eli
Hi Guys, A noob here, I have two models, class Students(CommonInfo): first_name = models.CharField(max_length=75) surname = models.CharField(max_length=75) class_score = models.ForeignKey(Course, related_name='course') exam_score = models.ForeignKey('House')

Re: How do you create a view that returns the next object in a given list?

2010-10-27 Thread tricks
get_next_by_FOO http://docs.djangoproject.com/en/dev/ref/models/instances/#django.db.models.Model.get_next_by_FOO -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

Re: How do you create a view that returns the next object in a given list?

2010-10-27 Thread tricks
get_next_by_FOO http://docs.djangoproject.com/en/dev/ref/models/instances/#django.db.models.Model.get_next_by_FOO -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

How do you create a view that returns the next object in a given list?

2010-10-27 Thread tricks...@googlemail.com
I have a view that displays object information when the correct URL is provided however I would like to create a similar view that returns url information from the record that is located next. So in essence take the info from my first view, list/order it in some way preferably by date and return t

Re: create a view

2007-02-25 Thread Mary
m/documentation/tutorial3/ > > konstantin > > On Feb 25, 3:51 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > How can i create a view that select data from database and then view > > it in html template > >

Re: create a view

2007-02-25 Thread akonsu
hello, do you mean like here: http://www.djangoproject.com/documentation/tutorial3/ konstantin On Feb 25, 3:51 pm, "Mary" <[EMAIL PROTECTED]> wrote: > How can i create a view that select data from database and then view > it in html template > i really appreciate any

create a view

2007-02-25 Thread Mary
How can i create a view that select data from database and then view it in html template i really appreciate any help :) Thank you in advance ; Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D