Skip to content

Commit

Permalink
Add support for MySQL backend
Browse files Browse the repository at this point in the history
Referring to #5
  • Loading branch information
mayankkapoor authored and aschn committed Dec 19, 2015
1 parent dfc55b1 commit 83448b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rest_framework_tracking/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Migration(migrations.Migration):
('remote_addr', models.GenericIPAddressField()),
('host', models.URLField()),
('method', models.CharField(max_length=10)),
('query_params', models.TextField(db_index=True)),
('query_params', models.TextField(null=True, blank=True)),
('data', models.TextField(null=True, blank=True)),
('response', models.TextField(null=True, blank=True)),
('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_tracking/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BaseAPIRequestLog(models.Model):
method = models.CharField(max_length=10)

# query params
query_params = models.TextField(db_index=True)
query_params = models.TextField(null=True, blank=True)

# POST body data
data = models.TextField(null=True, blank=True)
Expand Down

0 comments on commit 83448b7

Please sign in to comment.