mirror of
https://github.com/macports/macports-webapp.git
synced 2026-07-13 03:18:42 -07:00
7 lines
190 B
Python
7 lines
190 B
Python
from django.db.models import Func
|
|
|
|
|
|
class StringToArray(Func):
|
|
template = "%(function)s(regexp_replace(%(expressions)s, '[^0-9.]', '','g'), '.')::int[]"
|
|
function = 'string_to_array'
|