suomi itsm python manage py syncdb WARNING Django doesn have signals f

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
x@suomi:~/itsm$ python manage.py syncdb
WARNING! Django doesn't have signals for m2m relations. See #5390.Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/x/djtrunk/django/core/management/__init__.py", line 272, in execute_manager
utility.execute()
File "/home/x/djtrunk/django/core/management/__init__.py", line 219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/x/djtrunk/django/core/management/base.py", line 72, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/x/djtrunk/django/core/management/base.py", line 85, in execute
self.validate()
File "/home/x/djtrunk/django/core/management/base.py", line 112, in validate
num_errors = get_validation_errors(s, app)
File "/home/x/djtrunk/django/core/management/validation.py", line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/home/x/svn-checkouts/django-trunk/django/db/models/loading.py", line 128, in get_app_errors
self._populate()
File "/home/x/svn-checkouts/django-trunk/django/db/models/loading.py", line 57, in _populate
self.load_app(app_name, True)
File "/home/x/svn-checkouts/django-trunk/django/db/models/loading.py", line 72, in load_app
mod = __import__(app_name, {}, {}, ['models'])
File "/home/x/itsm/../itsm/applications/incidents/models.py", line 55, in <module>
class Incident( models.Model ):
File "/home/x/svn-checkouts/django-trunk/django/db/models/base.py", line 130, in __new__
new_class._prepare()
File "/home/x/svn-checkouts/django-trunk/django/db/models/base.py", line 166, in _prepare
dispatcher.send(signal=signals.class_prepared, sender=cls)
File "/home/x/djtrunk/django/dispatch/dispatcher.py", line 360, in send
**named
File "/home/x/djtrunk/django/dispatch/robustapply.py", line 47, in robustApply
return receiver(*arguments, **named)
File "/home/x/itsm/../itsm/applications/history/__init__.py", line 33, in _contribute
model, stored_fields = create_history_for_model(sender, self.exclude_fields)
File "/home/x/itsm/../itsm/applications/history/base.py", line 130, in create_history_for_model
fields, stored_fields = create_fields(Target, exclude_fields)
File "/home/x/itsm/../itsm/applications/history/base.py", line 107, in create_fields
fields = dict((field.name, create_field(field)) for field in chain_fields(Target)
File "/home/x/itsm/../itsm/applications/history/base.py", line 108, in <genexpr>
if field.name not in exclude_fields)
File "/home/x/itsm/../itsm/applications/history/base.py", line 97, in create_field
return history_class_for_field(base_field)(*args, **kwargs)
File "/home/x/djtrunk/django/utils/maxlength.py", line 47, in inner
func(self, *args, **kwargs)
File "/home/x/djtrunk/django/utils/maxlength.py", line 47, in inner
func(self, *args, **kwargs)
File "/home/x/svn-checkouts/django-trunk/django/db/models/fields/__init__.py", line 538, in __init__
Field.__init__(self, verbose_name, name, **kwargs)
File "/home/x/djtrunk/django/utils/maxlength.py", line 47, in inner
func(self, *args, **kwargs)
TypeError: Error when calling the metaclass bases
__init__() got an unexpected keyword argument '_unique'