added application advertisement

This commit is contained in:
Anatoly 2019-08-26 12:40:26 +03:00
parent 610ecb6f35
commit 6caea820da
12 changed files with 13 additions and 2 deletions

View File

View File

@ -0,0 +1 @@
# Register your models here.

View File

@ -0,0 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class AdvertisementConfig(AppConfig):
name = 'advertisement'
verbose_name = _('advertisement')

View File

@ -0,0 +1 @@
# Create your models here.

View File

@ -0,0 +1 @@
# Create your tests here.

View File

View File

View File

@ -0,0 +1 @@
# Create your views here.

View File

@ -72,7 +72,6 @@ class Collection(ProjectBaseMixin, CollectionNameMixin,
return f'{self.name}'
class CollectionItemQuerySet(models.QuerySet):
"""QuerySet for model CollectionItem."""

View File

@ -59,7 +59,8 @@ PROJECT_APPS = [
'news.apps.NewsConfig',
'translation.apps.TranslationConfig',
'collection.apps.CollectionConfig',
'partner.apps.PartnerConfig'
'partner.apps.PartnerConfig',
'advertisement.apps.AdvertisementConfig',
]
EXTERNAL_APPS = [