Q:

Howto use django regular inheritance in models and forms

How to define helpers to the Class Event so I can integrate them to EventForm and use them in event_new(request).
The 'helpers' should be used in forms, views, templates but not go into the database. It's about showing existing events and autogenerate new events due to various aspects
models.py

class Event_helper(object):
   number = models.PositiveSmallIntegerField()

class Event(Event_helper, models.Model):
   event_date = models.DateTimeField(auto_now=False, null=True, blank=True)

forms.py

class EventForm(forms.Event):
    class Meta:
        model = Event 
        fields = ('event_date', 'number')

views.py

def event_new(request):
    if request.method == "POST":
        form = EventForm(request.POST)
        if form.is_valid():
            event = form.save(commit=False)
            ... generate events ...
            event.save()

A:

The easiest solution I could find was without proper inheritance. But it is possible to make two different requests in views
models.py
class Event(models.Model):
   event_date = models.DateTimeField(auto_now=False, null=True, blank=True)

forms.py
class EventForm(forms.ModelForm):
    number = forms.IntegerField(initial = 1)

    class Meta:
        model = Event
        fields = ('event_date',)

views.py
def event_new(request):
    if request.method == "POST":
        form = EventForm(request.POST)
        if form.is_valid():
            number = int(request.POST['number'])
            event = form.save(commit=False)
            print(number)
            print(event)  
            ... generate events ...
            event.save()

