Skip to content

Commit b8ed2b4

Browse files
committed
fixed search user
1 parent b1d929e commit b8ed2b4

File tree

10 files changed

+14
-16
lines changed

10 files changed

+14
-16
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040

4141
Martor is available directly from [PyPI][2]:
4242

43-
1. Installing the package.
43+
**1.** Installing the package.
4444

4545
```
4646
$ pip install martor
4747
```
4848

4949

50-
2. Don't forget to add `'martor'` to your `'INSTALLED_APPS'` setting _(without migrations)_.
50+
**2.** Don't forget to add `'martor'` to your `'INSTALLED_APPS'` setting _(without migrations)_.
5151

5252
```
5353
# settings.py
@@ -58,7 +58,7 @@ INSTALLED_APPS = [
5858
```
5959

6060

61-
3. Add url pattern to your `urls.py.`
61+
**3.** Add url pattern to your `urls.py.`
6262

6363
```
6464
# urls.py
@@ -76,15 +76,14 @@ urlpatterns = [
7676
```
7777

7878

79-
4. Collect martor's static files in your `STATIC_ROOT` folder.
79+
**4.** Collect martor's static files in your `STATIC_ROOT` folder.
8080

8181
```
8282
./manage.py collectstatic
8383
```
8484

8585

86-
Setting Configurations `settings.py`
87-
---------------------------------------
86+
### Setting Configurations `settings.py`
8887

8988
Please register your application at https://api.imgur.com/oauth2/addclient
9089
to get `IMGUR_CLIENT_ID` and `IMGUR_API_KEY`.

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = '1.5.6'
3+
__VERSION__ = '1.5.7'
44
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
55
__AUTHOR_EMAIL__ = '[email protected]'

martor/static/martor/css/martor-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.semantic.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Name : Martor v1.5.6
2+
* Name : Martor v1.5.7
33
* Created by : Agus Makmun (Summon Agus)
44
* Release date : 16-Sep-2020
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Name : Martor v1.5.6
2+
* Name : Martor v1.5.7
33
* Created by : Agus Makmun (Summon Agus)
44
* Release date : 16-Sep-2020
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

martor/static/martor/js/martor.semantic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def markdown_search_user(request):
6565
and username != '' \
6666
and ' ' not in username:
6767

68-
queries = {'%s__iexact' % User.USERNAME_FIELD: username,
69-
'%s__icontains' % User.USERNAME_FIELD: username}
68+
queries = {'%s__icontains' % User.USERNAME_FIELD: username}
7069
users = User.objects.filter(**queries).filter(is_active=True)
7170
if users.exists():
7271
response_data.update({'status': 200,

0 commit comments

Comments
 (0)