This reverts commit
8585ea5afec383c9c5622843bcff0e6c448614c7.
This change required a migration which was not included in 2.0.0. It's
not possible to backport the migration but since this change only hides
a warning in the versions of Django supported here, it's easy to just
revert this.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #192
Stable-Only
class PatchManager(models.Manager):
use_for_related_fields = True
- # NOTE(stephenfin): This is necessary to silence a warning with Django >=
- # 1.10. Remove when 1.10 is the minimum supported version.
- silence_use_for_related_fields_deprecation = True
def get_queryset(self):
return PatchQuerySet(self.model, using=self.db)
class Meta:
verbose_name_plural = 'Patches'
- base_manager_name = 'objects'
class Comment(EmailMixin, models.Model):