On Wed, Dec 15, 2010 at 3:06 AM, Jer-ming Lin wrote:
> it seems the name conflict is the real problem. maybe you can use
> "Form Prefix"
> http://docs.djangoproject.com/en/1.2/ref/forms/api/#prefixes-for-forms
> to differentiate the fields between the Report and Incident Form.
> Sorry i can not h
On Tue, Dec 14, 2010 at 9:17 PM, john doe wrote:
>
>
> On Tue, Dec 14, 2010 at 2:15 PM, Titan, Jer-ming Lin wrote:
>
>> maybe your view function gets wrong. post it! XDD
>>
> looking at the request.POST itself I see:
[code]
[/code]
which shows the type choices for report and incident as BR and S
On Tue, Dec 14, 2010 at 2:15 PM, Titan, Jer-ming Lin wrote:
> maybe your view function gets wrong. post it! XDD
>
> Thanks Titan :-). The code I use for my view function is below
[code]
#validate user
def check_user_login(request):
username = request.POST['username']
password = request.POST['p
maybe your view function gets wrong. post it! XDD
BR
Titan
On Dec 15, 1:50 am, john doe wrote:
> On Tue, Dec 14, 2010 at 9:19 AM, john doe
> wrote:
>
>
>
>
>
> > On Tue, Dec 14, 2010 at 5:16 AM, Jer-ming Lin wrote:
>
> >> Hi John,
>
> >> plz modify the Incident Model like Report Model,
>
>
On Tue, Dec 14, 2010 at 9:19 AM, john doe wrote:
>
>
> On Tue, Dec 14, 2010 at 5:16 AM, Jer-ming Lin wrote:
>
>> Hi John,
>>
>>plz modify the Incident Model like Report Model,
>>
>> class Incident(models.Model):
>> report = models.ForeignKey(Report)
>> INCIDENT_CHOICES = (
>> ('S
On Tue, Dec 14, 2010 at 5:16 AM, Jer-ming Lin wrote:
> Hi John,
>
>plz modify the Incident Model like Report Model,
>
> class Incident(models.Model):
> report = models.ForeignKey(Report)
> INCIDENT_CHOICES = (
> ('SF', 'SegFault'),
> ('ML', 'Memory Leak'),
> ('MC'
On Mon, Dec 13, 2010 at 6:12 PM, Titan, Jer-ming Lin wrote:
> Hi John,
>
> each element in the choices is a two elements tuple. first one is
> the real data will be saved in the database and second one will
> present on the form. therefore, the max_length of 'type' field must be
> modified to fit
Hi John,
each element in the choices is a two elements tuple. first one is
the real data will be saved in the database and second one will
present on the form. therefore, the max_length of 'type' field must be
modified to fit the first element in the choices tuple. Plz see the
following code, i
Dear all,
I am making a small Django app for a bug tracking system to get my
head round this awesome framework. I am facing a problem wherein when
accepting input via a form generated by models. The classes are listed below
(not in its entirety).
[code]
class Report(models.Model):
#type =
9 matches
Mail list logo