#23851: 'GenericForeignKey' object has no attribute 'deconstruct'
-------------------------------------+-------------------------------------
Reporter: corebreaker | Owner: nobody
Type: Bug | Status: new
Component: | Version: 1.7
contrib.contenttypes | Resolution:
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by corebreaker:
Old description:
> The class django.contrib.contenttypes.generic.GenericForeignKey is a
> field type for models, used for my example by application
> cmsplugin_rt.rt_carousel, application that i modified in order to use it
> in Django 1.7 .
>
> But class django.contrib.contenttypes.generic.GenericForeignKey has not
> the required method 'deconstruct'.
>
> I posted this ticket cause class
> django.contrib.contenttypes.generic.GenericForeignKey could be used by
> others as field in models and the exception could be raised for this
> reason.
>
> The lack is just that class
> django.contrib.contenttypes.generic.GenericForeignKey has not the
> required 'deconstruct' method. This method must be added if not we have
> to subclass GenericForeignKey at every time we use it as field in models.
> It's just a big work to do each time.
New description:
The class `django.contrib.contenttypes.generic.GenericForeignKey` is a
field type for models, used for my example by application
`cmsplugin_rt.rt_carousel`, application that i modified in order to use it
in Django 1.7 .
But class `django.contrib.contenttypes.generic.GenericForeignKey` has not
the required method `deconstruct`.
I posted this ticket cause class
`django.contrib.contenttypes.generic.GenericForeignKey` could be used by
others as field in models and the exception could be raised for this
reason.
The lack is just that class
`django.contrib.contenttypes.generic.GenericForeignKey` has not
implemented the required method `deconstruct`. This method should be added
if not, we have to subclass `GenericForeignKey` at every time we use it as
field in models. It's just a big work to do each time.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/23851#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.73bbdf56e2495dea976083f3b362f0e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.