Break up RIGS models into seperate files

This commit is contained in:
2022-12-19 16:26:25 +00:00
parent 63a2f6d47b
commit 773f55ac84
8 changed files with 1039 additions and 1010 deletions

9
RIGS/models/utils.py Normal file
View File

@@ -0,0 +1,9 @@
def filter_by_pk(filt, query):
# try and parse an int
try:
val = int(query)
filt = filt | Q(pk=val)
except: # noqa
# not an integer
pass
return filt