mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Fixed #28077 -- Added support for PostgreSQL opclasses in Index.
Thanks Vinay Karanam for the initial patch.
This commit is contained in:
parent
b4cba4ed62
commit
38cada7c94
9 changed files with 143 additions and 16 deletions
|
|
@ -52,3 +52,8 @@ if connection.vendor == 'postgresql':
|
|||
headline = models.CharField(max_length=100, db_index=True)
|
||||
body = models.TextField(db_index=True)
|
||||
slug = models.CharField(max_length=40, unique=True)
|
||||
|
||||
|
||||
class IndexedArticle2(models.Model):
|
||||
headline = models.CharField(max_length=100)
|
||||
body = models.TextField()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue