added application advertisement
This commit is contained in:
parent
610ecb6f35
commit
6caea820da
0
apps/advertisement/__init__.py
Normal file
0
apps/advertisement/__init__.py
Normal file
1
apps/advertisement/admin.py
Normal file
1
apps/advertisement/admin.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Register your models here.
|
||||||
7
apps/advertisement/apps.py
Normal file
7
apps/advertisement/apps.py
Normal 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')
|
||||||
0
apps/advertisement/migrations/__init__.py
Normal file
0
apps/advertisement/migrations/__init__.py
Normal file
1
apps/advertisement/models.py
Normal file
1
apps/advertisement/models.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Create your models here.
|
||||||
0
apps/advertisement/serializers/__init__.py
Normal file
0
apps/advertisement/serializers/__init__.py
Normal file
1
apps/advertisement/tests.py
Normal file
1
apps/advertisement/tests.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Create your tests here.
|
||||||
0
apps/advertisement/urls/__init__.py
Normal file
0
apps/advertisement/urls/__init__.py
Normal file
0
apps/advertisement/views/__init__.py
Normal file
0
apps/advertisement/views/__init__.py
Normal file
1
apps/advertisement/views/web.py
Normal file
1
apps/advertisement/views/web.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Create your views here.
|
||||||
|
|
@ -72,7 +72,6 @@ class Collection(ProjectBaseMixin, CollectionNameMixin,
|
||||||
return f'{self.name}'
|
return f'{self.name}'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CollectionItemQuerySet(models.QuerySet):
|
class CollectionItemQuerySet(models.QuerySet):
|
||||||
"""QuerySet for model CollectionItem."""
|
"""QuerySet for model CollectionItem."""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,8 @@ PROJECT_APPS = [
|
||||||
'news.apps.NewsConfig',
|
'news.apps.NewsConfig',
|
||||||
'translation.apps.TranslationConfig',
|
'translation.apps.TranslationConfig',
|
||||||
'collection.apps.CollectionConfig',
|
'collection.apps.CollectionConfig',
|
||||||
'partner.apps.PartnerConfig'
|
'partner.apps.PartnerConfig',
|
||||||
|
'advertisement.apps.AdvertisementConfig',
|
||||||
]
|
]
|
||||||
|
|
||||||
EXTERNAL_APPS = [
|
EXTERNAL_APPS = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user