Commits

Anonymous committed a6c7912

It is about time we add a OneToOneField snippet. Trigger is 'oto'

  • Participants
  • Parent commits 999d770

Comments (0)

Files changed (2)

Python Django.tmbundle/Snippets/OneToOneField.tmSnippet

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>content</key>
+	<string>${1:FIELDNAME} = models.OneToOneField(${2:RELATED_MODEL}${3:, related_name="${4:RELATED_NAME}"})</string>
+	<key>name</key>
+	<string>OneToOneField</string>
+	<key>scope</key>
+	<string>source.python.django</string>
+	<key>tabTrigger</key>
+	<string>oto</string>
+	<key>uuid</key>
+	<string>78D53E2D-B51C-4404-A390-DAFFAEA84EDE</string>
+</dict>
+</plist>

Python Django.tmbundle/info.plist

 		<string>E77A3EB3-7EF2-4459-8DAB-53625BCA68AF</string>
 		<string>F497C0D3-812E-4339-8260-8D906337023B</string>
 		<string>449AB31C-BAB7-4D30-AF04-6A070CBE4EF4</string>
+		<string>78D53E2D-B51C-4404-A390-DAFFAEA84EDE</string>
 		<string>5D4F70FB-4A51-41D4-B729-920F827E70D2</string>
 		<string>27531D3B-899B-4872-A16D-7275E4E91B02</string>
 		<string>21013818-A691-4E96-A889-70A0F2F28557</string>