moneropro/app/charts/forms.py
Kumi 8e48bce180
Some checks are pending
Docker / build (push) Waiting to run
refactor: apply consistent string styling and error handling
Applied consistent use of double quotes for strings across the codebase to improve readability and maintain consistency. Updated exception handling to explicitly catch specific exceptions for better error management. Refactored context and view functions for cleaner and more structured output. Removed unused imports and unnecessary comments to streamline the code.
2024-11-12 14:09:33 +01:00

21 lines
431 B
Python

from .models import Coin
from django import forms
class CoinForm(forms.ModelForm):
class Meta:
model = Coin
fields = [
"name",
"date",
"priceusd",
"pricebtc",
"inflation",
"transactions",
"hashrate",
"supply",
"fee",
"revenue",
"blocksize",
"difficulty",
]