linuxlewis / djorm-ext-pgfulltext

PostgreSQL full-text search integration with django orm.
Other
250 stars 84 forks source link

Filtering of primary_key in models._parse_fields #38

Open gulfpearl opened 10 years ago

gulfpearl commented 10 years ago

Just wondering if there is a reason for not allowing primary keys in models._parse_fields (line 188):

field_names = set(field.name for field in self.model._meta.fields if not field.primary_key)

...... What if the primary key is a custom CharField that you want to include in the FTS?