Skip to content

Commit

Permalink
Merge pull request #129 from scuml/4-0-model-snippets
Browse files Browse the repository at this point in the history
Updates snippets to use django 4.0 models
  • Loading branch information
squ1b3r authored Sep 13, 2022
2 parents 1055000 + b518a8c commit b698adc
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 23 deletions.
7 changes: 7 additions & 0 deletions Models/Model Fields/BinaryField (m_bin).sublime-snippet
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>

This file was deleted.

7 changes: 0 additions & 7 deletions Models/Model Fields/IPAddressField (m_ip).sublime-snippet

This file was deleted.

7 changes: 7 additions & 0 deletions Models/Model Fields/JSONField (m_json).sublime-snippet
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>
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>
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>
7 changes: 7 additions & 0 deletions Models/Model Fields/SmallAutoField (m_sauto).sublime-snippet
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>
7 changes: 0 additions & 7 deletions Models/Model Fields/XMLField (m_xml).sublime-snippet

This file was deleted.

0 comments on commit b698adc

Please sign in to comment.