Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General grants cleanup #2391

Merged
merged 1 commit into from
Oct 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/grants/admin.py

This file was deleted.

22 changes: 22 additions & 0 deletions app/grants/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# -*- coding: utf-8 -*-
"""Define the Grants application configuration.

Copyright (C) 2018 Gitcoin Core

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

"""
from django.apps import AppConfig


class GrantsConfig(AppConfig):
"""Define the Grants application configuration."""

name = 'grants'
verbose_name = 'Grants'
59 changes: 48 additions & 11 deletions app/grants/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.1.1 on 2018-09-17 21:37
# Generated by Django 2.1.1 on 2018-10-09 13:20

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -14,32 +14,69 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='Contribution',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
('modified_on', models.DateTimeField(default=economy.models.get_time)),
('tx_id', models.CharField(default='0x0', max_length=255)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Grant',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
('modified_on', models.DateTimeField(default=economy.models.get_time)),
('title', models.CharField(max_length=255)),
('pitch', models.CharField(default='', max_length=255)),
('status', models.BooleanField(default=True)),
('title', models.CharField(default='', max_length=255)),
('description', models.TextField(blank=True, default='')),
('reference_url', models.URLField(db_index=True)),
('current_funding', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
('goal_funding', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
('profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grants', to='dashboard.Profile')),
('image_url', models.URLField(default='')),
('admin_address', models.CharField(default='0x0', max_length=255)),
('frequency', models.DecimalField(decimal_places=0, default=30, max_digits=50)),
('amount_goal', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
('amount_received', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
('token_address', models.CharField(default='0x0', max_length=255)),
('contract_address', models.CharField(default='0x0', max_length=255)),
('transaction_hash', models.CharField(default='0x0', max_length=255)),
('network', models.CharField(default='0x0', max_length=255)),
('required_gas_price', models.DecimalField(decimal_places=0, default='0', max_digits=50)),
('admin_profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_admin', to='dashboard.Profile')),
('team_member_profiles', models.ManyToManyField(related_name='grant_team_members', to='dashboard.Profile')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Stakeholder',
name='Subscription',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('eth_address', models.CharField(max_length=50)),
('name', models.CharField(blank=True, max_length=255)),
('role', models.CharField(blank=True, max_length=255)),
('url', models.URLField(db_index=True)),
('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
('modified_on', models.DateTimeField(default=economy.models.get_time)),
('status', models.BooleanField(default=True)),
('subscription_hash', models.CharField(default='', max_length=255)),
('contributor_signature', models.CharField(default='', max_length=255)),
('contributor_address', models.CharField(default='', max_length=255)),
('amount_per_period', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
('token_address', models.CharField(default='0x0', max_length=255)),
('gas_price', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
('network', models.CharField(default='0x0', max_length=255)),
('contributor_profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_contributor', to='dashboard.Profile')),
('grant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='grants.Grant')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='contribution',
name='subscription',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscription_contribution', to='grants.Subscription'),
),
]
68 changes: 0 additions & 68 deletions app/grants/migrations/0002_auto_20180918_1844.py

This file was deleted.

18 changes: 0 additions & 18 deletions app/grants/migrations/0003_auto_20180918_2234.py

This file was deleted.

18 changes: 0 additions & 18 deletions app/grants/migrations/0004_auto_20180918_2322.py

This file was deleted.

18 changes: 0 additions & 18 deletions app/grants/migrations/0005_auto_20180918_2328.py

This file was deleted.

18 changes: 0 additions & 18 deletions app/grants/migrations/0006_grant_tokenaddress.py

This file was deleted.

57 changes: 0 additions & 57 deletions app/grants/migrations/0007_auto_20180920_2115.py

This file was deleted.

43 changes: 0 additions & 43 deletions app/grants/migrations/0008_auto_20180927_1537.py

This file was deleted.

23 changes: 0 additions & 23 deletions app/grants/migrations/0009_auto_20180927_1544.py

This file was deleted.

Loading