Skip to content

Commit

Permalink
Fix update of dependencies/python.
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr committed Oct 9, 2015
1 parent d8faba7 commit 7abbaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/platal/api/resources/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Meta:
class ProfileSearchBackend(filters.BaseFilterBackend):

def filter_queryset(self, request, queryset, view):
search = request.QUERY_PARAMS.get('search', None)
search = request.query_params.get('search', None)
if search:
queryset = psearch.filter_profiles(queryset, search)
return queryset
Expand Down
2 changes: 1 addition & 1 deletion api/platal/profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __str__(self):
class ProfilePhoto(models.Model):
profile = models.OneToOneField('Profile', db_column='pid', primary_key=True, related_name='photo')
attachmime = models.CharField(max_length=4)
attach = models.TextField()
attach = models.BinaryField()
x = models.IntegerField()
y = models.IntegerField()
pub = models.CharField(max_length=7)
Expand Down

0 comments on commit 7abbaf7

Please sign in to comment.