forked from myles/django-photo-gallery
/
0002_photo_shoot_date.py
33 lines (21 loc) · 1.06 KB
/
0002_photo_shoot_date.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from south.db import db
from django.db import models
from netwizard.photogallery.models import *
class Migration:
def forwards(self, orm):
# Adding field 'Photo.shoot_date'
db.add_column('photogallery_photo', 'shoot_date', models.DateField(null=True, blank=True))
def backwards(self, orm):
# Deleting field 'Photo.shoot_date'
db.delete_column('photogallery_photo', 'shoot_date')
models = {
'photogallery.photo': {
'created_at': ('models.DateField', [], {'auto_now_add': 'True'}),
'description': ('models.TextField', [], {}),
'id': ('models.AutoField', [], {'primary_key': 'True'}),
'image': ('models.ImageField', [], {'max_length': '255', 'upload_to': "'uploads/photogallery'"}),
'shoot_date': ('models.DateField', [], {'null': 'True', 'blank': 'True'}),
'title': ('models.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
}
}
complete_apps = ['photogallery']