avocadoserver/models.py: simple fix for default status value

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Initial data: make job statuses aligned with avocado/job.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/fixtures/initial_data.json: javascript comment syntax not valid in json

Signed-off-by: Cleber Rosa <crosa@redhat.com>
README.md: update instructions for an easier setup

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/settings.py: disable web interface for humans

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Add models/views for JobStatus and TestStatus

Signed-off-by: Cleber Rosa <crosa@redhat.com>
job: replace test results for both job and test activities

Which are the data pieces that are being implemented at this
time.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Permissions: add a custom read only permission

And make constant-like data allowed to be read even by
non authenticated requests.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/serializers.py: make activities read only

These should be manipulated using their own prefixes, and are
only included in the job serialization for convenience.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/models.py: create a read only model base class

To protect models that have constant like definitions that should
only be queried by users of the API, and never changed.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/fixtures/initial_data.json: make "constant" names uppercase

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocadoserver/models.py: add custom create method for Job models

So that only a name is required, and all other non-null fields are
set to defaults. Also this method takes "constant" names instead
of objects, which is a lot easier to use.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Major cleanup: only leave code that is related to current functionality

And not models that may be required for future features.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Add license information

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Indentation fixes

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Style (aka PEP8) fixes

Signed-off-by: Cleber Rosa <crosa@redhat.com>
job activity: implement custom action for adding job activities

Signed-off-by: Cleber Rosa <crosa@redhat.com>
test activity: implement custom action for adding test activities

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Ignore the database file

Signed-off-by: Cleber Rosa <crosa@redhat.com>
reset-and-run.sh: add script to ease development cycles

Signed-off-by: Cleber Rosa <crosa@redhat.com>