Create and save records through ManyToManyField selection.

2013-09-07 Thread Trung Nguyen
I am new comer I struggle to save a record using admin page . What extra ethod should I add to save ContestScore record. Thanks. class School(models.Model): school_name = models.CharField(max_length=30) school_city = models.CharField(max_length=30) coach_name = models.CharField(max_le

and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-20 Thread Trung Nguyen
Django Version:1.5.2Exception Type:NoReverseMatchException Value: Reverse for 'gradingstudent' with arguments '()' and keyword arguments '{u'student_id': None, u'school_id': 1}' not found. Exception Location:/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line

Re: and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-21 Thread Trung Nguyen
No this not add form and I verify it. I also use pk but it does not work either. On Saturday, September 21, 2013 7:38:52 AM UTC-5, Daniel Roseman wrote: > > On Saturday, 21 September 2013 04:44:33 UTC+1, Trung Nguyen wrote: > >> Django Version:1.5.2Exception Type:NoReverseMatch

Re: and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-21 Thread Trung Nguyen
I found it. Inside {%%} shoud use variable. Inthis case is form.instance.id instead of {{form.instance.id}} On Saturday, September 21, 2013 5:06:07 PM UTC-5, Trung Nguyen wrote: > > No this not add form and I verify it. I also use pk but it does not work > either. > > On Satu

Re: and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-21 Thread Trung Nguyen
On Friday, September 20, 2013 10:44:33 PM UTC-5, Trung Nguyen wrote: > > Django Version:1.5.2Exception Type:NoReverseMatchException Value: > > Reverse for 'gradingstudent' with arguments '()' and keyword arguments > '{u'student_id': None, u&#x

Re: and keyword arguments '{u'student_id': None, u'school_id': 1}' not found.

2013-09-21 Thread Trung Nguyen
form.schoolName }} Enter Student Score {% endwith %} On Saturday, September 21, 2013 5:06:07 PM UTC-5, Trung Nguyen wrote: > > No this not add form and I verify it. I also use pk but it does not work > either. > > On Saturday, September 21, 2013 7:38:52 AM UTC-5, Daniel Rose

Formset from inlineformset_factory for the model who has multiple foreign key?

2013-09-22 Thread Trung Nguyen
I got this Error when I hit the submit from 'ManagementForm data is missing or has been tampered with'] class Course(models.Model): course = models.CharField(max_length=30) course_name = models.CharField(max_length=30) class Student(models.Model): first_name = models.CharField(