You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
349 B

from core.repositories import BaseRepository
from .models import Photo, FavouriteOrganization
class PhotoRepository(BaseRepository):
model = Photo
class FavouriteOrganizationRepository(BaseRepository):
model = FavouriteOrganization
@classmethod
def get_filtered(cls, **kwargs):
return cls.model.objects.filter(**kwargs)