﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12316	GenericForeignKey produces an error when submitting from a form	Daniel Gonzalez Gasull	nobody	"I apologize for not making a better report, but I cannot afford the time right now to write the minimum amount of code to reproduce this.

Snippet from my models.py:

{{{
class Subscription(models.Model):
    user = models.OneToOneField(User, primary_key=True)
    promotion = models.ForeignKey(Promotion)
    start_date = models.DateTimeField(auto_now_add=True)
    # Foreign key to AuthorizeNetSubscription u other model
    payment_gateway_subscription = generic.GenericForeignKey()
    is_active = models.BooleanField(default=True)


class AuthorizeNetSubscription(models.Model):
    subscription_id = models.CharField('subscriptionId in the ARB API call return', 
            max_length=16, primary_key=True)
}}}

Snippet from my forms.py:

{{{
        authorize_net_subscription = AuthorizeNetSubscription(
                subscription_id=result_dict.subscription_id.text_)
        user = User.objects.create_user(
            username = form_list[1].cleaned_data['display_name'],
            email=email,
            password=password,
        )
        subscription = Subscription(
            user=user,
            promotion=promotion,
            start_date=start_date,
            payment_gateway_subscription=authorize_net_subscription
        )
}}}

It fails in the line that creates the Subscription instance with a TypeError exception ""'object_id' is an invalid keyword argument for this function"" coming from line 320 in django/db/models/base.py
"		closed	Uncategorized	1.1-beta		invalid			Unreviewed	0	0	0	0	0	0
