Initial conversion of HTSWorkflow to use south migrations.
[htsworkflow.git] / htsworkflow / frontend / samples / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding model 'Antibody'
12         db.create_table(u'samples_antibody', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('antigene', self.gf('django.db.models.fields.CharField')(max_length=500, db_index=True)),
15             ('nickname', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=20, null=True, blank=True)),
16             ('catalog', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
17             ('antibodies', self.gf('django.db.models.fields.CharField')(max_length=500, db_index=True)),
18             ('source', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=500, null=True, blank=True)),
19             ('biology', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
20             ('notes', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
21         ))
22         db.send_create_signal(u'samples', ['Antibody'])
23
24         # Adding model 'Cellline'
25         db.create_table(u'samples_cellline', (
26             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
27             ('cellline_name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100, db_index=True)),
28             ('nickname', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=20, null=True, blank=True)),
29             ('notes', self.gf('django.db.models.fields.TextField')(blank=True)),
30         ))
31         db.send_create_signal(u'samples', ['Cellline'])
32
33         # Adding model 'Condition'
34         db.create_table(u'samples_condition', (
35             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
36             ('condition_name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=2000, db_index=True)),
37             ('nickname', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=20, null=True, blank=True)),
38             ('notes', self.gf('django.db.models.fields.TextField')(blank=True)),
39         ))
40         db.send_create_signal(u'samples', ['Condition'])
41
42         # Adding model 'ExperimentType'
43         db.create_table(u'samples_experimenttype', (
44             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
45             ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=50)),
46         ))
47         db.send_create_signal(u'samples', ['ExperimentType'])
48
49         # Adding model 'Tag'
50         db.create_table(u'samples_tag', (
51             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
52             ('tag_name', self.gf('django.db.models.fields.CharField')(max_length=100, db_index=True)),
53             ('context', self.gf('django.db.models.fields.CharField')(default='Library', max_length=50)),
54         ))
55         db.send_create_signal(u'samples', ['Tag'])
56
57         # Adding model 'Species'
58         db.create_table(u'samples_species', (
59             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
60             ('scientific_name', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
61             ('common_name', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)),
62         ))
63         db.send_create_signal(u'samples', ['Species'])
64
65         # Adding model 'Affiliation'
66         db.create_table(u'samples_affiliation', (
67             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
68             ('name', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
69             ('contact', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
70             ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)),
71         ))
72         db.send_create_signal(u'samples', ['Affiliation'])
73
74         # Adding unique constraint on 'Affiliation', fields ['name', 'contact']
75         db.create_unique(u'samples_affiliation', ['name', 'contact'])
76
77         # Adding M2M table for field users on 'Affiliation'
78         m2m_table_name = db.shorten_name(u'samples_affiliation_users')
79         db.create_table(m2m_table_name, (
80             ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
81             ('affiliation', models.ForeignKey(orm[u'samples.affiliation'], null=False)),
82             ('htsuser', models.ForeignKey(orm[u'samples.htsuser'], null=False))
83         ))
84         db.create_unique(m2m_table_name, ['affiliation_id', 'htsuser_id'])
85
86         # Adding model 'LibraryType'
87         db.create_table(u'samples_librarytype', (
88             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
89             ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
90             ('is_paired_end', self.gf('django.db.models.fields.BooleanField')(default=True)),
91             ('can_multiplex', self.gf('django.db.models.fields.BooleanField')(default=True)),
92         ))
93         db.send_create_signal(u'samples', ['LibraryType'])
94
95         # Adding model 'MultiplexIndex'
96         db.create_table(u'samples_multiplexindex', (
97             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
98             ('adapter_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.LibraryType'])),
99             ('multiplex_id', self.gf('django.db.models.fields.CharField')(max_length=6)),
100             ('sequence', self.gf('django.db.models.fields.CharField')(max_length=12, null=True, blank=True)),
101         ))
102         db.send_create_signal(u'samples', ['MultiplexIndex'])
103
104         # Adding unique constraint on 'MultiplexIndex', fields ['adapter_type', 'multiplex_id']
105         db.create_unique(u'samples_multiplexindex', ['adapter_type_id', 'multiplex_id'])
106
107         # Adding model 'Library'
108         db.create_table(u'samples_library', (
109             ('id', self.gf('django.db.models.fields.CharField')(max_length=10, primary_key=True)),
110             ('library_name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
111             ('library_species', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.Species'])),
112             ('hidden', self.gf('django.db.models.fields.BooleanField')(default=False)),
113             ('account_number', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
114             ('cell_line', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.Cellline'], null=True, blank=True)),
115             ('condition', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.Condition'], null=True, blank=True)),
116             ('antibody', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.Antibody'], null=True, blank=True)),
117             ('replicate', self.gf('django.db.models.fields.PositiveSmallIntegerField')(null=True, blank=True)),
118             ('experiment_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.ExperimentType'])),
119             ('library_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['samples.LibraryType'], null=True, blank=True)),
120             ('multiplex_id', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
121             ('creation_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
122             ('made_for', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
123             ('made_by', self.gf('django.db.models.fields.CharField')(default='Lorian', max_length=50, blank=True)),
124             ('stopping_point', self.gf('django.db.models.fields.CharField')(default='Done', max_length=25)),
125             ('amplified_from_sample', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='amplified_into_sample', null=True, to=orm['samples.Library'])),
126             ('undiluted_concentration', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=5, decimal_places=2, blank=True)),
127             ('successful_pM', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=9, decimal_places=1, blank=True)),
128             ('ten_nM_dilution', self.gf('django.db.models.fields.BooleanField')(default=False)),
129             ('gel_cut_size', self.gf('django.db.models.fields.IntegerField')(default=225, null=True, blank=True)),
130             ('insert_size', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
131             ('notes', self.gf('django.db.models.fields.TextField')(blank=True)),
132             ('bioanalyzer_summary', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
133             ('bioanalyzer_concentration', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=5, decimal_places=2, blank=True)),
134             ('bioanalyzer_image_url', self.gf('django.db.models.fields.URLField')(default='', max_length=200, blank=True)),
135         ))
136         db.send_create_signal(u'samples', ['Library'])
137
138         # Adding M2M table for field affiliations on 'Library'
139         m2m_table_name = db.shorten_name(u'samples_library_affiliations')
140         db.create_table(m2m_table_name, (
141             ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
142             ('library', models.ForeignKey(orm[u'samples.library'], null=False)),
143             ('affiliation', models.ForeignKey(orm[u'samples.affiliation'], null=False))
144         ))
145         db.create_unique(m2m_table_name, ['library_id', 'affiliation_id'])
146
147         # Adding M2M table for field tags on 'Library'
148         m2m_table_name = db.shorten_name(u'samples_library_tags')
149         db.create_table(m2m_table_name, (
150             ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
151             ('library', models.ForeignKey(orm[u'samples.library'], null=False)),
152             ('tag', models.ForeignKey(orm[u'samples.tag'], null=False))
153         ))
154         db.create_unique(m2m_table_name, ['library_id', 'tag_id'])
155
156         # Adding model 'HTSUser'
157         db.create_table(u'samples_htsuser', (
158             (u'user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)),
159         ))
160         db.send_create_signal(u'samples', ['HTSUser'])
161
162
163     def backwards(self, orm):
164         # Removing unique constraint on 'MultiplexIndex', fields ['adapter_type', 'multiplex_id']
165         db.delete_unique(u'samples_multiplexindex', ['adapter_type_id', 'multiplex_id'])
166
167         # Removing unique constraint on 'Affiliation', fields ['name', 'contact']
168         db.delete_unique(u'samples_affiliation', ['name', 'contact'])
169
170         # Deleting model 'Antibody'
171         db.delete_table(u'samples_antibody')
172
173         # Deleting model 'Cellline'
174         db.delete_table(u'samples_cellline')
175
176         # Deleting model 'Condition'
177         db.delete_table(u'samples_condition')
178
179         # Deleting model 'ExperimentType'
180         db.delete_table(u'samples_experimenttype')
181
182         # Deleting model 'Tag'
183         db.delete_table(u'samples_tag')
184
185         # Deleting model 'Species'
186         db.delete_table(u'samples_species')
187
188         # Deleting model 'Affiliation'
189         db.delete_table(u'samples_affiliation')
190
191         # Removing M2M table for field users on 'Affiliation'
192         db.delete_table(db.shorten_name(u'samples_affiliation_users'))
193
194         # Deleting model 'LibraryType'
195         db.delete_table(u'samples_librarytype')
196
197         # Deleting model 'MultiplexIndex'
198         db.delete_table(u'samples_multiplexindex')
199
200         # Deleting model 'Library'
201         db.delete_table(u'samples_library')
202
203         # Removing M2M table for field affiliations on 'Library'
204         db.delete_table(db.shorten_name(u'samples_library_affiliations'))
205
206         # Removing M2M table for field tags on 'Library'
207         db.delete_table(db.shorten_name(u'samples_library_tags'))
208
209         # Deleting model 'HTSUser'
210         db.delete_table(u'samples_htsuser')
211
212
213     models = {
214         u'auth.group': {
215             'Meta': {'object_name': 'Group'},
216             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
218             'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
219         },
220         u'auth.permission': {
221             'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
222             'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
223             'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
224             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225             'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
226         },
227         u'auth.user': {
228             'Meta': {'object_name': 'User'},
229             'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
230             'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
231             'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
232             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
233             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234             'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
235             'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236             'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237             'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
238             'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
239             'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
240             'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
241             'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
242         },
243         u'contenttypes.contenttype': {
244             'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
245             'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
246             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
247             'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
248             'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
249         },
250         u'samples.affiliation': {
251             'Meta': {'ordering': "['name', 'contact']", 'unique_together': "(('name', 'contact'),)", 'object_name': 'Affiliation'},
252             'contact': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
253             'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
254             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
255             'name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
256             'users': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['samples.HTSUser']", 'null': 'True', 'blank': 'True'})
257         },
258         u'samples.antibody': {
259             'Meta': {'ordering': "['antigene']", 'object_name': 'Antibody'},
260             'antibodies': ('django.db.models.fields.CharField', [], {'max_length': '500', 'db_index': 'True'}),
261             'antigene': ('django.db.models.fields.CharField', [], {'max_length': '500', 'db_index': 'True'}),
262             'biology': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
263             'catalog': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
264             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
265             'nickname': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
266             'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
267             'source': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '500', 'null': 'True', 'blank': 'True'})
268         },
269         u'samples.cellline': {
270             'Meta': {'ordering': "['cellline_name']", 'object_name': 'Cellline'},
271             'cellline_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100', 'db_index': 'True'}),
272             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
273             'nickname': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
274             'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'})
275         },
276         u'samples.condition': {
277             'Meta': {'ordering': "['condition_name']", 'object_name': 'Condition'},
278             'condition_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '2000', 'db_index': 'True'}),
279             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
280             'nickname': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
281             'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'})
282         },
283         u'samples.experimenttype': {
284             'Meta': {'object_name': 'ExperimentType'},
285             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
286             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'})
287         },
288         u'samples.htsuser': {
289             'Meta': {'ordering': "['first_name', 'last_name', 'username']", 'object_name': 'HTSUser', '_ormbases': [u'auth.User']},
290             u'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['auth.User']", 'unique': 'True', 'primary_key': 'True'})
291         },
292         u'samples.library': {
293             'Meta': {'ordering': "['-id']", 'object_name': 'Library'},
294             'account_number': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
295             'affiliations': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'library_affiliations'", 'null': 'True', 'to': u"orm['samples.Affiliation']"}),
296             'amplified_from_sample': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'amplified_into_sample'", 'null': 'True', 'to': u"orm['samples.Library']"}),
297             'antibody': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.Antibody']", 'null': 'True', 'blank': 'True'}),
298             'bioanalyzer_concentration': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
299             'bioanalyzer_image_url': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '200', 'blank': 'True'}),
300             'bioanalyzer_summary': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
301             'cell_line': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.Cellline']", 'null': 'True', 'blank': 'True'}),
302             'condition': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.Condition']", 'null': 'True', 'blank': 'True'}),
303             'creation_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
304             'experiment_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.ExperimentType']"}),
305             'gel_cut_size': ('django.db.models.fields.IntegerField', [], {'default': '225', 'null': 'True', 'blank': 'True'}),
306             'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
307             'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
308             'insert_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
309             'library_name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
310             'library_species': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.Species']"}),
311             'library_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.LibraryType']", 'null': 'True', 'blank': 'True'}),
312             'made_by': ('django.db.models.fields.CharField', [], {'default': "'Lorian'", 'max_length': '50', 'blank': 'True'}),
313             'made_for': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
314             'multiplex_id': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
315             'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
316             'replicate': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
317             'stopping_point': ('django.db.models.fields.CharField', [], {'default': "'Done'", 'max_length': '25'}),
318             'successful_pM': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '9', 'decimal_places': '1', 'blank': 'True'}),
319             'tags': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'library_tags'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['samples.Tag']"}),
320             'ten_nM_dilution': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
321             'undiluted_concentration': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'})
322         },
323         u'samples.librarytype': {
324             'Meta': {'ordering': "['-id']", 'object_name': 'LibraryType'},
325             'can_multiplex': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
326             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
327             'is_paired_end': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
328             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
329         },
330         u'samples.multiplexindex': {
331             'Meta': {'unique_together': "(('adapter_type', 'multiplex_id'),)", 'object_name': 'MultiplexIndex'},
332             'adapter_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['samples.LibraryType']"}),
333             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334             'multiplex_id': ('django.db.models.fields.CharField', [], {'max_length': '6'}),
335             'sequence': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'})
336         },
337         u'samples.species': {
338             'Meta': {'ordering': "['scientific_name']", 'object_name': 'Species'},
339             'common_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
340             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
341             'scientific_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'})
342         },
343         u'samples.tag': {
344             'Meta': {'ordering': "['context', 'tag_name']", 'object_name': 'Tag'},
345             'context': ('django.db.models.fields.CharField', [], {'default': "'Library'", 'max_length': '50'}),
346             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
347             'tag_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'})
348         }
349     }
350
351     complete_apps = ['samples']