PetterJohanssonTilia / MyCreators

0 stars 0 forks source link

bug: can't see pending creators on heroku but can see it in dev environment #15

Closed PetterJohanssonTilia closed 4 months ago

PetterJohanssonTilia commented 4 months ago

the dev environment uses sqllite while heroku uses postgress in the dev environment I can see pending user requests but not on heroku

PetterJohanssonTilia commented 4 months ago

fixed with this commit: 986a3d7691bc2f91b87fdc5519f79855e19340e5

I first added the Q statis iexact to use both lower and upper case of the status Pending: Q(status__iexact='PENDING') & ~Q(about_me='')

Then I realized I used the filtering about me to only show pending users with an about me page, now I've fixed it to use all variations of pending and only show users with an empty about me page: Q(status__iexact='PENDING') & Q(about_me='')