-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0bc44f
commit 37088e7
Showing
25 changed files
with
626 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ db.sqlite3 | |
db.sqlite3-journal | ||
venv/ | ||
local_settings.py | ||
**/migrations/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 11:43 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
import model_utils.fields | ||
import tinymce.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Announcement', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), | ||
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), | ||
('title', models.CharField(max_length=200)), | ||
('body', tinymce.models.HTMLField()), | ||
], | ||
options={ | ||
'ordering': ['-created'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='AnnouncementView', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), | ||
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), | ||
('announcement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='announcements.Announcement')), | ||
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 11:42 | ||
|
||
import django.contrib.auth.models | ||
import django.contrib.auth.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('auth', '0009_alter_user_last_name_max_length'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Member', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('password', models.CharField(max_length=128, verbose_name='password')), | ||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), | ||
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), | ||
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), | ||
('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), | ||
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), | ||
('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), | ||
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), | ||
('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), | ||
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), | ||
('level', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'کارشناسی'), (2, 'ارشد'), (3, 'دکتری')], null=True)), | ||
('std_id', models.CharField(blank=True, max_length=20, null=True)), | ||
('cash', models.IntegerField(default=0)), | ||
('password_changed', models.BooleanField(default=False)), | ||
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), | ||
], | ||
options={ | ||
'verbose_name': 'user', | ||
'verbose_name_plural': 'users', | ||
'abstract': False, | ||
}, | ||
managers=[ | ||
('objects', django.contrib.auth.models.UserManager()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='EducationalYear', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('year', models.IntegerField()), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='member', | ||
name='start_year', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='base.EducationalYear'), | ||
), | ||
migrations.AddField( | ||
model_name='member', | ||
name='user_permissions', | ||
field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 17:35 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Transaction', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('amount', models.IntegerField(verbose_name='مبلغ')), | ||
('type', models.IntegerField(choices=[(1, 'شارژ نقدی'), (2, 'شارژ آنلاین'), (3, 'انتقال وجه'), (4, 'استفاده از خدمات شورا')], verbose_name='نوع تراکنش')), | ||
('is_successfully', models.BooleanField(default=False, verbose_name='موفقیت')), | ||
('destination', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='destination', to=settings.AUTH_USER_MODEL, verbose_name='مقصد')), | ||
('origin', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='origin', to=settings.AUTH_USER_MODEL, verbose_name='مبدا')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 18:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0002_transaction'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='transaction', | ||
options={'verbose_name': 'تراکنش', 'verbose_name_plural': 'تراکنش\u200cها'}, | ||
), | ||
migrations.AddField( | ||
model_name='transaction', | ||
name='Authority', | ||
field=models.CharField(max_length=512, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.1.2 on 2019-09-20 09:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0003_auto_20190919_2327'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='transaction', | ||
name='data', | ||
field=models.CharField(max_length=512, null=True, verbose_name='توضیحات'), | ||
), | ||
migrations.AlterField( | ||
model_name='transaction', | ||
name='type', | ||
field=models.IntegerField(choices=[(1, 'شارژ نقدی'), (2, 'شارژ آنلاین'), (3, 'انتقال وجه'), (4, 'استفاده از خدمات شورا'), (5, 'تسویه حساب')], verbose_name='نوع تراکنش'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.2 on 2019-09-20 10:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('base', '0004_auto_20190920_1418'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='transaction', | ||
name='time', | ||
field=models.DateTimeField(auto_now_add=True, null=True), | ||
), | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 11:44 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('base', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Course', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50, verbose_name='نام')), | ||
('course_number', models.CharField(max_length=10, unique=True)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Field', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50, verbose_name='نام')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='OfferedCourse', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('group_number', models.SmallIntegerField(default=1)), | ||
('term', models.PositiveSmallIntegerField(choices=[(1, 'پاییز'), (2, 'بهار'), (3, 'تابستان')])), | ||
('exam_time', models.CharField(max_length=255)), | ||
('capacity', models.IntegerField()), | ||
('details', models.CharField(max_length=1023)), | ||
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Course')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Professor', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50, verbose_name='نام')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='offeredcourse', | ||
name='professor', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Professor'), | ||
), | ||
migrations.AddField( | ||
model_name='offeredcourse', | ||
name='year', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.EducationalYear'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='offeredcourse', | ||
unique_together={('course', 'group_number', 'term', 'year')}, | ||
), | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Generated by Django 2.1.2 on 2019-09-19 11:44 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Donate', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(blank=True, max_length=63, null=True)), | ||
('value', models.IntegerField(default=0)), | ||
('is_success', models.NullBooleanField(default=True)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Event', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=50, verbose_name='نام')), | ||
('start', models.DateTimeField(null=True)), | ||
('end', models.DateTimeField(null=True)), | ||
('location', models.CharField(max_length=1023)), | ||
('reg_end', models.DateTimeField()), | ||
('image', models.ImageField(blank=True, null=True, upload_to='events')), | ||
('has_donate', models.BooleanField(default=False)), | ||
('has_register', models.BooleanField(default=True)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='EventRegister', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('std_id', models.CharField(max_length=63)), | ||
('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='event.Event')), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='donate', | ||
name='event', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='event.Event'), | ||
), | ||
migrations.AddField( | ||
model_name='donate', | ||
name='user', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
Empty file.
Oops, something went wrong.