Skip to content

Commit beea3cf

Browse files
TextField db_index removed, bleach version fixed
1 parent bd4258a commit beea3cf

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# DRF API Logger
2-
![version](https://img.shields.io/badge/version-0.0.5-blue.svg)
2+
![version](https://img.shields.io/badge/version-0.0.6-blue.svg)
3+
[![PyPi Downloads](http://pepy.tech/badge/drf-api-logger)](http://pepy.tech/project/drf-api-logger)
4+
[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)
5+
[![GitHub issues](https://img.shields.io/github/issues/Naereen/StrapDown.js.svg)](https://GitHub.com/vishalanandl177/DRF-API-Logger/issues/)
6+
7+
[![Donate](https://img.shields.io/badge/$-support-ff69b4.svg?style=flat)](https://paypal.me/chynybekov)
8+
9+
10+
311

412
An API Logger for your Django Rest Framework project.
513

drf_api_logger/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class Meta:
2121

2222
class APILogsModel(BaseModel):
2323
api = models.CharField(max_length=255, help_text='API URL')
24-
headers = models.TextField(db_index=True)
25-
body = models.TextField(db_index=True)
24+
headers = models.TextField()
25+
body = models.TextField()
2626
method = models.CharField(max_length=10, db_index=True)
2727
client_ip_address = models.CharField(max_length=50)
28-
response = models.TextField(db_index=True)
28+
response = models.TextField()
2929
status_code = models.PositiveSmallIntegerField(help_text='Response status code', db_index=True)
3030
execution_time = models.DecimalField(decimal_places=5, max_digits=8,
3131
help_text='Server execution time (Not complete response time.)')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def get_long_desc():
99

1010
setuptools.setup(
1111
name="drf_api_logger",
12-
version="0.0.5",
12+
version="0.0.6",
1313
author="Vishal Anand",
1414
author_email="[email protected]",
1515
description="An API Logger for your Django Rest Framework project.",

0 commit comments

Comments
 (0)