mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-04 23:30:29 +00:00
Change string based reference to class based
This commit is contained in:
parent
fe9fcd5128
commit
fe1434e8d2
2 changed files with 4 additions and 1 deletions
|
|
@ -416,6 +416,7 @@ Contributors
|
|||
* David T Thompson
|
||||
* kailwallin
|
||||
* ryanomor
|
||||
* Thijs Baaijen
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
from django.db import models
|
||||
|
||||
from wagtail.core.models import Site
|
||||
|
||||
from .registry import register_setting
|
||||
|
||||
__all__ = ['BaseSetting', 'register_setting']
|
||||
|
|
@ -12,7 +14,7 @@ class BaseSetting(models.Model):
|
|||
"""
|
||||
|
||||
site = models.OneToOneField(
|
||||
'wagtailcore.Site', unique=True, db_index=True, editable=False, on_delete=models.CASCADE)
|
||||
Site, unique=True, db_index=True, editable=False, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue