import json

from django import forms
from users.models import User
from trening import models as trening_models

class WorkoutForm(forms.ModelForm):
    class Meta:
        model = trening_models.Workout
        fields = ['treningtype', 'distance', 'date']

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['distance'].widget.attrs.update({'placeholder': "eks 8.2 km"})
        self.fields['treningtype'].widget.attrs.update({'id': "type-field"})
        self.fields['date'].widget.attrs.update({'id': "date"})

    
1364952cfe97d6bf39323909fe7686c09bb87f56
<mask token>

<mask token>


class WorkoutForm(forms.ModelForm):


    class Meta:
        model = trening_models.Workout
        fields = ['treningtype', 'distance', 'date']
    <mask token>

<mask token>


class WorkoutForm(forms.ModelForm):


    class Meta:
        model = trening_models.Workout
        fields = ['treningtype', 'distance', 'date']

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['distance'].widget.attrs.update({'placeholder':
            'eks 8.2 km'})
        self.fields['treningtype'].widget.attrs.update({'id': 'type-field'})
        self.fields['date'].widget.attrs.update({'id': 'date'})

import json
from django import forms
from users.models import User
from trening import models as trening_models


class WorkoutForm(forms.ModelForm):


    class Meta:
        model = trening_models.Workout
        fields = ['treningtype', 'distance', 'date']

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['distance'].widget.attrs.update({'placeholder':
            'eks 8.2 km'})
        self.fields['treningtype'].widget.attrs.update({'id': 'type-field'})
        self.fields['date'].widget.attrs.update({'id': 'date'})

import json

from django import forms
from users.models import User
from trening import models as trening_models

class WorkoutForm(forms.ModelForm):
    class Meta:
        model = trening_models.Workout
        fields = ['treningtype', 'distance', 'date']

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields['distance'].widget.attrs.update({'placeholder': "eks 8.2 km"})
        self.fields['treningtype'].widget.attrs.update({'id': "type-field"})
        self.fields['date'].widget.attrs.update({'id': "date"})

    