Skip to content
Snippets Groups Projects
Commit 427c3813 authored by Simon Belak's avatar Simon Belak
Browse files

Floats should never be categories

parent b9111a92
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,9 @@
(defn- cannot-be-category-or-list?
[{:keys [base_type special_type]}]
(or (isa? base_type :type/DateTime)
(isa? base_type :type/Collection)
(or (isa? base_type :type/DateTime)
(isa? base_type :type/Collection)
(isa? base_type :type/Float)
;; Don't let IDs become list Fields (they already can't become categories, because they already have a special
;; type). It just doesn't make sense to cache a sequence of numbers since they aren't inherently meaningful
(isa? special_type :type/PK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment