Răsfoiți Sursa

Renaming database names

stucked_s 9 luni în urmă
părinte
comite
3148790076

+ 1 - 1
admin/client.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Client
+from dbsynce.models import Client
 
 @admin.register(Client)
 class ClientAdmin(admin.ModelAdmin):

+ 1 - 1
admin/company.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Company
+from dbsynce.models import Company
 
 @admin.register(Company)
 class CompanyAdmin(admin.ModelAdmin):

+ 1 - 1
admin/documents.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Documents
+from dbsynce.models import Documents
 
 @admin.register(Documents)
 class DocumentsAdmin(admin.ModelAdmin):

+ 1 - 1
admin/orders.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Orders
+from dbsynce.models import Orders
 
 @admin.register(Orders)
 class OrdersAdmin(admin.ModelAdmin):

+ 1 - 1
admin/permissions.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Permissions
+from dbsynce.models import Permissions
 
 @admin.register(Permissions)
 class PermissionsAdmin(admin.ModelAdmin):

+ 1 - 1
admin/provider.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Provider
+from dbsynce.models import Provider
 
 @admin.register(Provider)
 class ProviderAdmin(admin.ModelAdmin):

+ 1 - 1
admin/relationship.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Relationship
+from dbsynce.models import Relationship
 
 @admin.register(Relationship)
 class RelationshipAdmin(admin.ModelAdmin):

+ 1 - 1
admin/resource.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Resource
+from dbsynce.models import Resource
 
 @admin.register(Resource)
 class ResourceAdmin(admin.ModelAdmin):

+ 1 - 1
admin/service.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import Service
+from dbsynce.models import Service
 
 @admin.register(Service)
 class ServiceAdmin(admin.ModelAdmin):

+ 1 - 1
admin/servicetype.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from metaservicesynced.models import ServiceType
+from dbsynce.models import ServiceType
 
 @admin.register(ServiceType)
 class ServiceTypeAdmin(admin.ModelAdmin):

+ 2 - 2
apiviews/client.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import ClientSerializer
+from dbsynce.serializer import ClientSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Client
+from dbsynce.models import Client
 
 class ClientMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/company.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import CompanySerializer
+from dbsynce.serializer import CompanySerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Company
+from dbsynce.models import Company
 
 class CompanyMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/documents.py

@@ -1,7 +1,7 @@
 from django.http import HttpResponse
-from metaservicesynced.serializer import DocumentsSerializer
+from dbsynce.serializer import DocumentsSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Documents
+from dbsynce.models import Documents
 
 class DocumentsMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/orders.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import OrdersSerializer
+from dbsynce.serializer import OrdersSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Orders
+from dbsynce.models import Orders
 
 class OrdersMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/permissions.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import PermissionsSerializer
+from dbsynce.serializer import PermissionsSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Permissions
+from dbsynce.models import Permissions
 
 class PermissionsMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/provider.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import ProviderSerializer
+from dbsynce.serializer import ProviderSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Provider
+from dbsynce.models import Provider
 
 class ProviderMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/relationship.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import RelationshipSerializer
+from dbsynce.serializer import RelationshipSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Relationship
+from dbsynce.models import Relationship
 
 class RelationshipMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/resource.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import ResourceSerializer
+from dbsynce.serializer import ResourceSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Resource
+from dbsynce.models import Resource
 
 class ResourceMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/service.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import ServiceSerializer
+from dbsynce.serializer import ServiceSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import Service
+from dbsynce.models import Service
 
 class ServiceMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apiviews/servicetype.py

@@ -1,6 +1,6 @@
-from metaservicesynced.serializer import ServiceTypeSerializer
+from dbsynce.serializer import ServiceTypeSerializer
 from rest_framework import viewsets, permissions
-from metaservicesynced.models import ServiceType
+from dbsynce.models import ServiceType
 
 class ServiceTypeMVS(viewsets.ModelViewSet):
 

+ 2 - 2
apps.py

@@ -1,5 +1,5 @@
 from django.apps import AppConfig
 
-class MetaservicesyncedConfig(AppConfig):
+class DbsyncedConfig(AppConfig):
     default_auto_field = "django.db.models.BigAutoField"
-    name = "metaservicesynced"
+    name = "dbsynce"

+ 1 - 1
models/documents.py

@@ -1,7 +1,7 @@
 from django.db import models
 from django.contrib.auth import get_user_model
 
-from metaservicesynced.models.company import Company
+from dbsynce.models.company import Company
 from tickets.models import Ticket
 
 

+ 4 - 4
models/orders.py

@@ -1,10 +1,10 @@
 from django.db import models
 from django.contrib.auth import get_user_model
 
-from metaservicesynced.models.client import Client
-from metaservicesynced.models.provider import Provider
-from metaservicesynced.models.service import Service
-from metaservicesynced.models.servicetype import ServiceType
+from dbsynce.models.client import Client
+from dbsynce.models.provider import Provider
+from dbsynce.models.service import Service
+from dbsynce.models.servicetype import ServiceType
 from tickets.models import Ticket
 
 

+ 1 - 1
models/provider.py

@@ -1,7 +1,7 @@
 from django.db import models
 from django.contrib.auth import get_user_model
 
-from metaservicesynced.models.company import Company
+from dbsynce.models.company import Company
 from tickets.models import Ticket
 
 

+ 3 - 3
models/service.py

@@ -1,9 +1,9 @@
 from django.db import models
 
-from metaservicesynced.models.provider import Provider
-from metaservicesynced.models.servicetype import ServiceType
+from dbsynce.models.provider import Provider
+from dbsynce.models.servicetype import ServiceType
 from tickets.models import Ticket
-from metaservicesynced.models.resource import Resource
+from dbsynce.models.resource import Resource
 
 
 class Service(models.Model):

+ 1 - 1
serializer/client.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Client
+from dbsynce.models import Client
 
 class ClientSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/company.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Company
+from dbsynce.models import Company
 
 class CompanySerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/documents.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Documents
+from dbsynce.models import Documents
 
 class DocumentsSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/orders.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Orders
+from dbsynce.models import Orders
 from tickets.models import Ticket, TicketList
 import traceback
 

+ 1 - 1
serializer/permissions.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Permissions
+from dbsynce.models import Permissions
 
 class PermissionsSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/provider.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Provider
+from dbsynce.models import Provider
 
 class ProviderSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/relationship.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Relationship
+from dbsynce.models import Relationship
 
 class RelationshipSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/resource.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Resource
+from dbsynce.models import Resource
 
 class ResourceSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/service.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import Service
+from dbsynce.models import Service
 
 class ServiceSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
serializer/servicetype.py

@@ -1,5 +1,5 @@
 from rest_framework import serializers
-from metaservicesynced.models import ServiceType
+from dbsynce.models import ServiceType
 
 class ServiceTypeSerializer(serializers.ModelSerializer):
     class Meta:

+ 1 - 1
urls.py

@@ -1,4 +1,4 @@
-from metaservicesynced.apiviews import *
+from dbsynce.apiviews import *
 from rest_framework import routers
 from django.urls import path, include