Skip to content

Commit

Permalink
Merge pull request #100 from jheld/bugfix/requestevent-url-charfield
Browse files Browse the repository at this point in the history
Bugfix: RequestEvent url as charfield w/index.
  • Loading branch information
jheld authored Oct 1, 2019
2 parents 03e05bc + 7b5871a commit 1f02161
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion easyaudit/migrations/0009_auto_20180314_2225.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='requestevent',
name='url',
field=models.TextField(db_index=False),
field=models.CharField(max_length=254, db_index=False),
),
]
18 changes: 18 additions & 0 deletions easyaudit/migrations/0013_auto_20190723_0126.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.1 on 2019-07-23 01:26

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('easyaudit', '0012_auto_20181018_0012'),
]

operations = [
migrations.AlterField(
model_name='requestevent',
name='url',
field=models.CharField(db_index=True, max_length=254),
),
]
2 changes: 1 addition & 1 deletion easyaudit/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Meta:


class RequestEvent(models.Model):
url = models.TextField(null=False, db_index=False)
url = models.CharField(null=False, db_index=True, max_length=254)
method = models.CharField(max_length=20, null=False, db_index=True)
query_string = models.TextField(null=True)
user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True,
Expand Down

0 comments on commit 1f02161

Please sign in to comment.