Skip to content

Commit

Permalink
Updated get_user_projects cache
Browse files Browse the repository at this point in the history
  • Loading branch information
codingforentrepreneurs committed Jan 17, 2024
1 parent b767ef9 commit b37eab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def get_queryset(self):
def has_access(self, user=None):
return self.get_queryset().has_access(user=user)

def has_access_by_username(self, user=None):
def has_access_by_username(self, username=None):
# Added off video recordings
# for the project cache
return self.get_queryset().has_access_by_username(user=user)
return self.get_queryset().has_access_by_username(username)

class Project(models.Model):
owner = models.ForeignKey(User, null=True, related_name='owned_projects', on_delete=models.SET_NULL)
Expand Down

0 comments on commit b37eab1

Please sign in to comment.