Yourlabs

contenttype

Django generic relations and performances: solutions

| by jpic | django contenttype
django-actream is a fresh and fantastic pluggable application for django. This article presents the solution to a simple performance issue: selecting followers and users who follow me through a generic foreign key … This article targets django users. The model At the time this article is written, this is what it looks like: class Follow(models.Model): """Lets a user follow the activities of any specific actor""" user = models.ForeignKey(User) content_type = models. Read More
1 of 1