Opened 10 years ago

Last modified 10 years ago

#23851 closed Bug

'GenericForeignKey' object has no attribute 'deconstruct' — at Initial Version

Reported by: corebreaker Owned by: nobody
Component: contrib.contenttypes Version: 1.7
Severity: Normal Keywords:
Cc: corebreaker Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The class django.contrib.contenttypes.generic.GenericForeignKey is a field type, 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 'decontruct' 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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top