added application partner

This commit is contained in:
Anatoly 2019-08-23 16:19:44 +03:00
parent e2767af57d
commit bb9d0653f1
19 changed files with 33 additions and 0 deletions

0
apps/partner/__init__.py Normal file
View File

1
apps/partner/admin.py Normal file
View File

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

7
apps/partner/apps.py Normal file
View File

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

View File

9
apps/partner/models.py Normal file
View File

@ -0,0 +1,9 @@
from django.db import models
from django.utils.translation import gettext_lazy as _
from utils.models import ImageMixin, ProjectBaseMixin
class Partner(ProjectBaseMixin, ImageMixin):
"""Partner model."""
url = models.URLField(verbose_name=_('Partner URL'))

View File

View File

@ -0,0 +1 @@
# Mixin

View File

View File

1
apps/partner/tests.py Normal file
View File

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

View File

View File

@ -0,0 +1,4 @@
"""Partner app common urlconf."""
urlpatterns = [
]

View File

9
apps/partner/urls/web.py Normal file
View File

@ -0,0 +1,9 @@
"""Partner app web urlconf."""
from partner.urls.common import urlpatterns as common_url_patterns
urlpatterns_api = []
urlpatterns = urlpatterns_api + \
common_url_patterns

View File

View File

View File

View File

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

View File