suomi itsm python manage py syncdb Traceback most recent call last Fil

 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
x@suomi:~/itsm$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/x/itsm/__init__.py", line 272, in execute_manager
File "/home/x/itsm/__init__.py", line 219, in execute
File "/home/x/djtrunk/django/core/management/base.py", line 72, in run_from_argv
File "/home/x/djtrunk/django/core/management/base.py", line 85, in execute
File "/home/x/djtrunk/django/core/management/base.py", line 112, in validate
File "/home/x/djtrunk/django/core/management/validation.py", line 28, in get_validation_errors
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
File "/home/x/djtrunk/django/dispatch/robustapply.py", line 47, in robustApply
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
File "/home/x/djtrunk/django/utils/maxlength.py", line 47, in inner
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
TypeError: Error when calling the metaclass bases
__init__() got an unexpected keyword argument '_unique'