♻️(project) rename project from "publish" to "impress"
The repository was renamed to "impress" but the code was still mentionning "publish".
This commit is contained in:
committed by
Samuel Paccoud
parent
f581eb8abd
commit
ab7d9933e0
@@ -1,4 +1,4 @@
|
||||
"""publish core API endpoints"""
|
||||
"""Impress core API endpoints"""
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Permission handlers for the publish core app."""
|
||||
"""Permission handlers for the impress core app."""
|
||||
from django.core import exceptions
|
||||
|
||||
from rest_framework import permissions
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Client serializers for the publish core app."""
|
||||
"""Client serializers for the impress core app."""
|
||||
from django.db.models import Q
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"""publish Core application"""
|
||||
"""Impress Core application"""
|
||||
# from django.apps import AppConfig
|
||||
# from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
# class CoreConfig(AppConfig):
|
||||
# """Configuration class for the publish core app."""
|
||||
# """Configuration class for the impress core app."""
|
||||
|
||||
# name = "core"
|
||||
# app_label = "core"
|
||||
# verbose_name = _("publish core application")
|
||||
# verbose_name = _("impress core application")
|
||||
|
||||
@@ -33,7 +33,7 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'verbose_name': 'Template',
|
||||
'verbose_name_plural': 'Templates',
|
||||
'db_table': 'publish_template',
|
||||
'db_table': 'impress_template',
|
||||
'ordering': ('title',),
|
||||
},
|
||||
),
|
||||
@@ -60,7 +60,7 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'verbose_name': 'user',
|
||||
'verbose_name_plural': 'users',
|
||||
'db_table': 'publish_user',
|
||||
'db_table': 'impress_user',
|
||||
},
|
||||
managers=[
|
||||
('objects', django.contrib.auth.models.UserManager()),
|
||||
@@ -80,7 +80,7 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'verbose_name': 'Template/user relation',
|
||||
'verbose_name_plural': 'Template/user relations',
|
||||
'db_table': 'publish_template_access',
|
||||
'db_table': 'impress_template_access',
|
||||
},
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Declare and configure the models for the publish core application
|
||||
Declare and configure the models for the impress core application
|
||||
"""
|
||||
import textwrap
|
||||
import uuid
|
||||
@@ -134,7 +134,7 @@ class User(AbstractBaseUser, BaseModel, auth_models.PermissionsMixin):
|
||||
REQUIRED_FIELDS = []
|
||||
|
||||
class Meta:
|
||||
db_table = "publish_user"
|
||||
db_table = "impress_user"
|
||||
verbose_name = _("user")
|
||||
verbose_name_plural = _("users")
|
||||
|
||||
@@ -169,7 +169,7 @@ class Template(BaseModel):
|
||||
)
|
||||
|
||||
class Meta:
|
||||
db_table = "publish_template"
|
||||
db_table = "impress_template"
|
||||
ordering = ("title",)
|
||||
verbose_name = _("Template")
|
||||
verbose_name_plural = _("Templates")
|
||||
@@ -252,7 +252,7 @@ class TemplateAccess(BaseModel):
|
||||
)
|
||||
|
||||
class Meta:
|
||||
db_table = "publish_template_access"
|
||||
db_table = "impress_template_access"
|
||||
verbose_name = _("Template/user relation")
|
||||
verbose_name_plural = _("Template/user relations")
|
||||
constraints = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Fixtures for tests in the publish core application"""
|
||||
"""Fixtures for tests in the impress core application"""
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for Templates API endpoint in publish's core app: create
|
||||
Tests for Templates API endpoint in impress's core app: create
|
||||
"""
|
||||
import pytest
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for Templates API endpoint in publish's core app: delete
|
||||
Tests for Templates API endpoint in impress's core app: delete
|
||||
"""
|
||||
import random
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Test users API endpoints in the publish core app.
|
||||
Test users API endpoints in the impress core app.
|
||||
"""
|
||||
import pytest
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for Templates API endpoint in publish's core app: list
|
||||
Tests for Templates API endpoint in impress's core app: list
|
||||
"""
|
||||
from unittest import mock
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for Templates API endpoint in publish's core app: retrieve
|
||||
Tests for Templates API endpoint in impress's core app: retrieve
|
||||
"""
|
||||
import pytest
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for Templates API endpoint in publish's core app: update
|
||||
Tests for Templates API endpoint in impress's core app: update
|
||||
"""
|
||||
import random
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Test template accesses API endpoints for users in publish's core app.
|
||||
Test template accesses API endpoints for users in impress's core app.
|
||||
"""
|
||||
import random
|
||||
from uuid import uuid4
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Test users API endpoints in the publish core app.
|
||||
Test users API endpoints in the impress core app.
|
||||
"""
|
||||
import pytest
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
Reference in New Issue
Block a user