Skip to content

Commit

Permalink
Merge pull request #3697 from dkliban/contentguard-reference
Browse files Browse the repository at this point in the history
Explicitly references ContentGuard with a class name
  • Loading branch information
dkliban committed Oct 4, 2018
2 parents dc3eb83 + f27f128 commit 13c7e1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pulpcore/pulpcore/app/models/publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from . import storage
from .base import Model
from .content import ContentGuard
from .repository import Publisher, Repository
from .task import CreatedResource

Expand Down Expand Up @@ -211,7 +212,7 @@ class BaseDistribution(Model):
publication = models.ForeignKey(Publication, null=True, on_delete=models.SET_NULL)
publisher = models.ForeignKey(Publisher, null=True, on_delete=models.SET_NULL)
repository = models.ForeignKey(Repository, null=True, on_delete=models.SET_NULL)
content_guard = models.ForeignKey('ContentGuard', null=True, on_delete=models.SET_NULL)
content_guard = models.ForeignKey(ContentGuard, null=True, on_delete=models.SET_NULL)

class Meta:
abstract = True
Expand Down

0 comments on commit 13c7e1a

Please sign in to comment.