(admin.E301) 'app.model' has no GenericForeignKey
<p>in models.py</p>

<pre><code>class Activities(models.Model):
    day = models.PositiveIntegerField(default=1, null=False,blank=False,db_index=True)
    activity = models.CharField(max_length=100, blank=False,choices=activity_choices, db_index=True)
    description = models.TextField(null=True,blank=True)
    sequence = models.PositiveIntegerField(null=True,blank=True)

class holidaygroup(models.Model):
    ....
    activity = generic.GenericRelation(Activities)
</code></pre>

<p>In admin.py</p>

<pre><code>class ActivitiesInline(generic.GenericTabularInline):
    model = Activities
class holidaygroupAdmin(ReadOnlyAdminFields,admin.ModelAdmin):
    ....
    inlines = [SeasonalPriceInline,ImageInline,HotelsInline,seoInline,NotesInline,ActivitiesInline,]
</code></pre>

<p>When i tried to run the server got the below error</p>

<pre><code>ERRORS:
&lt;class 'holidays.admin.ActivitiesInline'&gt;: (admin.E301) 'holidays.Activities' has no GenericForeignKey.
</code></pre>

<p>Thanks in advance</p>