Hi Rob,
On Aug 28, 3:24 pm, Rob Goedman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Since moving to beta-2 I get:
>
> Robs-Intel:mcp rob$ ./manage.py runserver
> Validating models...
> Unhandled exception in thread started by <function inner_run at
> 0x7a8470>
> Traceback (most recent call last):
> File "/Library/Python/2.5/site-packages/django/core/management/
> commands/runserver.py", line 47, in inner_run
> self.validate(display_num_errors=True)
> File "/Library/Python/2.5/site-packages/django/core/management/
> base.py", line 122, in validate
> num_errors = get_validation_errors(s, app)
> File "/Library/Python/2.5/site-packages/django/core/management/
> validation.py", line 28, in get_validation_errors
> for (app_name, error) in get_app_errors().items():
> File "/Library/Python/2.5/site-packages/django/db/models/
> loading.py", line 128, in get_app_errors
> self._populate()
> File "/Library/Python/2.5/site-packages/django/db/models/
> loading.py", line 57, in _populate
> self.load_app(app_name, True)
> File "/Library/Python/2.5/site-packages/django/db/models/
> loading.py", line 72, in load_app
> mod = __import__(app_name, {}, {}, ['models'])
> File "./Descriptors/models.py", line 27, in <module>
> class AEDescriptor(models.Model):
> File "./Descriptors/models.py", line 31, in AEDescriptor
> code = models.PositiveSmallIntegerField(core=True)
> TypeError: __init__() got an unexpected keyword argument 'core'
>
> It's the 1st app that contains core=True in models.py:
>
> class AEDescriptor(models.Model):
> """ The Descriptor class for alarm/event/system message descriptor
> instances.
> Table is loaded from ./mcp/Descriptors/sql/descriptor.sql"""
>
> code = models.PositiveSmallIntegerField(core=True)
> descriptor = models.CharField(max_length=60, core=True)
>
> def __str__(self):
> return self.descriptor
>
> class Meta:
> verbose_name_plural = 'Alarms and events descriptors'
> db_table='alarm_and_event_descriptors'
>
> Until beta-1 no problems. Any hints?
>
> I've checked the incompatible backward changes page and searched the
> archives but was not able to find anything.
Actually, it's kind of included in this entry:
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Removedoldformsvalidatorsandrelatedcode
But you're right that it doesn't explicitly spell out that you will
need to remove the core option from all your model fields for model
validation to succeed.
> I continue to be impressed by how smooth the migration/tracking svn
> has been using that page!
Yep.
-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---