Commit c0078fc2 authored by fred's avatar fred
Browse files

models: move filepath to its own model

parent 1d40fb1c
from django.db import models
from django.utils.translation import ugettext_lazy as _
class NonstopFile(models.Model):
filepath = models.CharField(_('Filepath'), max_length=255)
creation_timestamp = models.DateTimeField(auto_now_add=True, null=True)
class SomaLogLine(models.Model):
class Meta:
verbose_name = _('Soma log line')
verbose_name_plural = _('Soma log lines')
ordering = ['play_timestamp']
filepath = models.CharField(_('Filepath'), max_length=255)
filepath = models.ForeignKey(NonstopFile)
play_timestamp = models.DateTimeField()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment