mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
parent
808388c28c
commit
37a8f5aeed
27
django/contrib/sessions/migrations/0001_initial.py
Normal file
27
django/contrib/sessions/migrations/0001_initial.py
Normal file
@ -0,0 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Session',
|
||||
fields=[
|
||||
('session_key', models.CharField(max_length=40, serialize=False, verbose_name='session key', primary_key=True)),
|
||||
('session_data', models.TextField(verbose_name='session data')),
|
||||
('expire_date', models.DateTimeField(verbose_name='expire date', db_index=True)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'django_session',
|
||||
'verbose_name': 'session',
|
||||
'verbose_name_plural': 'sessions',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
0
django/contrib/sessions/migrations/__init__.py
Normal file
0
django/contrib/sessions/migrations/__init__.py
Normal file
@ -1,3 +1,5 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user