Skip to content

Commit c4391f4

Browse files
author
Johannes Gijsbers
committed
Add EXPERIMENTAL warning, expand text/plain hack checking.
1 parent 6bc02c3 commit c4391f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/backends/back_tsearch2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Note: this backend is EXPERIMENTAL. Do not use if you value your data.
2+
13
import re
24

35
import psycopg
@@ -210,6 +212,6 @@ def __init__(self, db, classname, **properties):
210212
default_mime_type = 'text/plain'
211213
def create(self, **propvalues):
212214
# figure the mime type
213-
if not propvalues.get('type'):
215+
if 'type' in self.getprops() and not propvalues.get('type'):
214216
propvalues['type'] = self.default_mime_type
215217
return Class.create(self, **propvalues)

0 commit comments

Comments
 (0)