just updated my django trunk install and am not getting a http://dpaste.com/60810/ that wasn't there before http://code.djangoproject.com/changeset/7814 ... now I realize that this presents a backwards incompatible change, but the error is coming from the admin interface (one that does have a file field) but I'm not uploading a file
Will upload the traceback from the paste on this ticket as well.
The models used:
from django.db import models
from django.conf import settings
#-------------------------------------------------------------------------------
class File(models.Model):
"""
"""
path = models.CharField(max_length=255, unique=True)
folder = 'protected_files'
file = models.FileField(upload_to=folder,)
number_of_codes_to_create = models.PositiveIntegerField(
help_text = "Use this to generate new codes on save."
)
max_uses_for_created_codes = models.PositiveIntegerField(
default=2,
help_text = "New codes will have this many uses on generation."
)
def __unicode__(self) :
return self.filename()
class Admin:
pass
#-------------------------------------------------------------------------------
class FileCode(models.Model):
"""
"""
file = models.ForeignKey(
File,
edit_inline=models.TABULAR,
related_name='codes'
)
code = models.CharField(max_length=10, core=True)
uses = models.IntegerField(default=0)
max_uses = models.PositiveIntegerField(default=2)
class Admin:
pass