irongit

A simpler way to view django projects

captures the foreign key fields

huncholanehuncholaneauthored
parent 0d9abaccommit cf1dd88f6de84cc95a177e89d1b447a618f6a4d4Browse files

1 file changed, +1 -1

+1-1src/regex.ts
@@ -3,5 +3,5 @@ export default {
33 appContainer: /INSTALLED_APPS = \[([\s\S]*?)\]/,
44 module: /'([\.\w]+)'/gm,
55 model: /class (\w+).*models.Model.*:([\s\S]*?)\n\n/gm,
6- modelField: /(\w+) = .*\.(\w+)Field/gm,
6+ modelField: /(\w+) = .*\.(\w*[(Field)|(ForeignKey)])/gm,
77 };