Skip to content

Commit

Permalink
renamed sublet to market
Browse files Browse the repository at this point in the history
  • Loading branch information
minghansun1 committed Oct 23, 2024
1 parent ef44d80 commit 68c57b6
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/sublet/admin.py → backend/market/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.contrib import admin
from django.utils.html import mark_safe

from sublet.models import Amenity, Offer, Sublet, SubletImage
from market.models import Amenity, Offer, Sublet, SubletImage


class SubletAdmin(admin.ModelAdmin):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from profanity_check import predict
from rest_framework import serializers

from sublet.models import Amenity, Offer, Sublet, SubletImage
from market.models import Amenity, Offer, Sublet, SubletImage


class AmenitySerializer(serializers.ModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion backend/sublet/urls.py → backend/market/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.urls import path
from rest_framework import routers

from sublet.views import (
from market.views import (
Amenities,
CreateImages,
DeleteImage,
Expand Down
6 changes: 3 additions & 3 deletions backend/sublet/views.py → backend/market/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
from rest_framework.response import Response

from pennmobile.analytics import Metric, record_analytics
from sublet.models import Amenity, Offer, Sublet, SubletImage
from sublet.permissions import (
from market.models import Amenity, Offer, Sublet, SubletImage
from market.permissions import (
IsSuperUser,
OfferOwnerPermission,
SubletImageOwnerPermission,
SubletOwnerPermission,
)
from sublet.serializers import (
from market.serializers import (
AmenitySerializer,
OfferSerializer,
SubletImageSerializer,
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/sublet/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.test import TestCase
from rest_framework.test import APIClient

from sublet.models import Amenity, Sublet
from market.models import Amenity, Sublet


User = get_user_model()
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/sublet/test_sublets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.test import TestCase
from rest_framework.test import APIClient

from sublet.models import Amenity, Offer, Sublet, SubletImage
from market.models import Amenity, Offer, Sublet, SubletImage


User = get_user_model()
Expand Down

0 comments on commit 68c57b6

Please sign in to comment.