Skip to content

Commit

Permalink
[BUGFIX] Rule.content_object should use our Site proxy module #194
Browse files Browse the repository at this point in the history
Since we define most of our relations on our local proxy Site module, we want to ensure our lookup does the same.
  • Loading branch information
kfdm authored Nov 8, 2019
2 parents 18f59a3 + ad54be5 commit 7952efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class Rule(models.Model):
models.Q(app_label='promgen', model='service'))
)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey('content_type', 'object_id')
content_object = GenericForeignKey('content_type', 'object_id', for_concrete_model=False)
description = models.TextField(blank=True)

class Meta:
Expand Down

0 comments on commit 7952efa

Please sign in to comment.