Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Initial event type #6

@avoine

Description

@avoine

At line 401 of the blagenda/forms.py file you get the event type "event" for a new event:

event.event_type = EventType.objects.get(label='event')

The problem is that this event type does not exist yet.

So one thing you could do is to add a initial_data.json file in the blagenda/fixtures/ directory with
some initial event type like that:

[
  {
    "pk": 1,
    "model": "blagenda.eventtype",
    "fields": {
      "abbr": "ev",
      "label": "event"
    }
  }
]

This will create the missing event type when developers would do the syncdb command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions