from django import forms
from .models import Investors
from .models import Stocks


class StockForm(forms.ModelForm):


    class Meta:
        model = Stocks
        fields = ['stockid', 'stocksymbol', 'numshares', 'purchaseprice',
            'currentprice', 'datepurchased']
        labels = {'stockid': 'Stock ID', 'stocksymbol': 'Stock Symbol',
            'numshares': 'Number of Shares', 'purchaseprice':
            'Purchase Price', 'currentprice': 'Current Price',
            'datepurchased': 'Date Purchased (MM/DD/YYYY)'}

c1d8ef2f6805d9529eeb3f973b3c961b9d975efa
<mask token>

<mask token>


class StockForm(forms.ModelForm):


    class Meta:
        model = Stocks
        fields = ['stockid', 'stocksymbol', 'numshares', 'purchaseprice',
            'currentprice', 'datepurchased']
        labels = {'stockid': 'Stock ID', 'stocksymbol': 'Stock Symbol',
            'numshares': 'Number of Shares', 'purchaseprice':
            'Purchase Price', 'currentprice': 'Current Price',
            'datepurchased': 'Date Purchased (MM/DD/YYYY)'}

from django import forms
from .models import Investors
from .models import Stocks


class StockForm(forms.ModelForm):


    class Meta:
        model = Stocks
        fields = ['stockid', 'stocksymbol', 'numshares', 'purchaseprice',
            'currentprice', 'datepurchased']
        labels = {'stockid': 'Stock ID', 'stocksymbol': 'Stock Symbol',
            'numshares': 'Number of Shares', 'purchaseprice':
            'Purchase Price', 'currentprice': 'Current Price',
            'datepurchased': 'Date Purchased (MM/DD/YYYY)'}
