-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from scuml/4-0-model-snippets
Updates snippets to use django 4.0 models
- Loading branch information
Showing
8 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:FIELDNAME} = models.BinaryField(max_length=${2:None})]]></content> | ||
<tabTrigger>mbin</tabTrigger> | ||
<scope>source.python</scope> | ||
<description>BinaryField (mbin)</description> | ||
</snippet> |
7 changes: 0 additions & 7 deletions
7
Models/Model Fields/CommaSeparatedIntegerField (m_coseint).sublime-snippet
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:FIELDNAME} = models.JSONField($2)]]></content> | ||
<tabTrigger>mjson</tabTrigger> | ||
<scope>source.python</scope> | ||
<description>JSONField (mjson)</description> | ||
</snippet> |
4 changes: 2 additions & 2 deletions
4
Models/Model Fields/NullBooleanField (m_nullbool).sublime-snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:FIELDNAME} = models.NullBooleanField($2)]]></content> | ||
<content><![CDATA[${1:FIELDNAME} = models.BooleanField(null=True)]]></content> | ||
<tabTrigger>mnullbool</tabTrigger> | ||
<scope>source.python</scope> | ||
<description>NullBooleanField (mnullbool)</description> | ||
</snippet> | ||
</snippet> |
7 changes: 7 additions & 0 deletions
7
Models/Model Fields/PositiveBigIntegerField (m_posbigint).sublime-snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:FIELDNAME} = models.PositiveBigIntegerField($2)]]></content> | ||
<tabTrigger>mposbigint</tabTrigger> | ||
<scope>source.python</scope> | ||
<description>PositiveSmallIntegerField (mposbigint)</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:FIELDNAME} = models.SmallAutoField($2)]]></content> | ||
<tabTrigger>msauto</tabTrigger> | ||
<scope>source.python</scope> | ||
<description>SmallAutoField (msauto)</description> | ||
</snippet> |
This file was deleted.
Oops, something went wrong.