from django import forms
from .models import Job


class OfferForm(forms.Form):
    title = forms.CharField(label='Titulo', max_length=256)
    url = forms.URLField(label='URL', max_length=512)
    body = forms.CharField(label='Mensaje', widget=forms.Textarea)

    def save(self):
        data = self.cleaned_data
        job = Job()
        job.title = data['title']
        job.url = data['url']
        job.body = data['body']
        return job.save()

0bd057e4fa13d563980b0ccf41a473832c1946c8
<mask token>


class OfferForm(forms.Form):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class OfferForm(forms.Form):
    <mask token>
    <mask token>
    <mask token>

    def save(self):
        data = self.cleaned_data
        job = Job()
        job.title = data['title']
        job.url = data['url']
        job.body = data['body']
        return job.save()

<mask token>


class OfferForm(forms.Form):
    title = forms.CharField(label='Titulo', max_length=256)
    url = forms.URLField(label='URL', max_length=512)
    body = forms.CharField(label='Mensaje', widget=forms.Textarea)

    def save(self):
        data = self.cleaned_data
        job = Job()
        job.title = data['title']
        job.url = data['url']
        job.body = data['body']
        return job.save()

from django import forms
from .models import Job


class OfferForm(forms.Form):
    title = forms.CharField(label='Titulo', max_length=256)
    url = forms.URLField(label='URL', max_length=512)
    body = forms.CharField(label='Mensaje', widget=forms.Textarea)

    def save(self):
        data = self.cleaned_data
        job = Job()
        job.title = data['title']
        job.url = data['url']
        job.body = data['body']
        return job.save()
