Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-11 Thread David Crandell
, >> 'artistimagegalleries.apps.ArtistImageGalleriesConfig', >> 'bands.apps.BandsConfig', >> 'labels.apps.LabelsConfig', >> 'releaseimagegalleries.apps.ReleaseImageGalleriesConfig', >> 'releases.apps.ReleasesConfig'] >

Re: Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-06 Thread Lloyd Dube
ions.middleware.SessionMiddleware', > 'django.middleware.common.CommonMiddleware', > 'django.middleware.csrf.CsrfViewMiddleware', > 'django.contrib.auth.middleware.AuthenticationMiddleware', > 'django.contrib.messages.middleware.MessageMiddleware&#

Error - module 'django.db.models' has no attribute 'FieldDoesNotExist' when adding FK relationship object

2021-08-06 Thread Lloyd Dube
nvs/afridisc-sWjK8x-o-py3.9/lib/python3.9/site-packages/django/db/models/options.py", line 608, in get_field return self.fields_map[field_name] During handling of the above exception ('_to_field'), another exception occurred: File "/Users/sd/Library/Caches/pypoetry/virtu

Custom field on admin.py - FieldDoesNotExist when using RelatedFieldWidgetWrapper

2019-05-08 Thread Naran Khetani
) add_related_field_wrapper(self, 'tags') @admin.register(Documentitems) class DocumentitemsAdmin(admin.ModelAdmin): form = DocumentItemsForm save_as = True I get the below exception: Django Version: 2.1.7 Exception Type: FieldDoesNotExist Exception Value: Documentitem

Re: Django M2M with Oracle database FieldDoesNotExist error

2016-06-10 Thread Felipe Horta
elated.py" >> , line 1253, in __get__ >> through=self.field.rel.through, >> File >> "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py" >> , line 862, in __init__ >> source_field = through._meta.get_field(source

Re: FieldDoesNotExist during custom migration

2016-06-10 Thread Gagaro
The issue was with my model which had a unique_together with the field removed in it. Fixed migrations are: class Migration(migrations.Migration): operations = [ migrations.AddField( model_name='Rendition', name='filter2', field=models.CharField(ma

FieldDoesNotExist during custom migration

2016-06-08 Thread Gagaro
Hello, I'm trying to make a migration to change a field ("filter") from a ForeignKey to a CharField. The migration is as follow : class Migration(migrations.Migration): operations = [ migrations.AddField( model_name='Rendition', name='filter2', fi

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
ield.rel.through, > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.py" > , line 862, in __init__ > source_field = through._meta.get_field(source_field_name) > File > "/usr/local/lib/python2.7/dist-packages/django/db/mod

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
/python2.7/dist-packages/django/db/models/fields/related.py", line 862, in __init__ source_field = through._meta.get_field(source_field_name) File "/usr/local/lib/python2.7/dist-packages/django/db/models/options.py", line 554, in get_field raise FieldDoesNotExist(&#x

Re: Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread Erik Cederstrand
> Den 03/08/2015 kl. 08.50 skrev mohsenba...@gmail.com: > > Hello Django community. > I have two Django models Foo and Bar that have a ManyToMany relation: > > Class Foo(models.model): > > ... > > bars = models.ManyToManyField('Bar', related_name='foos') > somewhere in the code, i do dire

Re: An FieldDoesNotExist happen when I use migrate

2015-08-03 Thread mohsenbande
r/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py", > line 469, in alter_field > return self._alter_many_to_many(model, old_field, new_field, strict) > File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py",

Django M2M with Oracle database FieldDoesNotExist error

2015-08-03 Thread mohsenbande
.8/ref/models/relations/#direct-assignment> to replace the relation with a new list: foo_object.bars = [bar_object_list] but i get: FieldDoesNotExist: Foo_bars has no field named None I use Django 1.8.3 with Oracle 12c any help would be highly appreciated -- You received this message because

An FieldDoesNotExist happen when I use migrate

2015-05-19 Thread Zhong Yang
l, old_field, new_field, strict) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/schema.py", line 785, in _alter_many_to_many old_field.rel.through._meta.get_field(old_field.m2m_field_name()), File "/usr/local/lib/python2.7/dist-packa

Re: FieldDoesNotExist Error in Tutorial Part 1

2014-11-19 Thread Adailton Nascimento
Use: import datetime class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField(auto_now=True) class Meta: ordering = ['-pub_date'] def __str__(self): return self.question_text delete all objects of your pas

FieldDoesNotExist Error in Tutorial Part 1

2014-11-18 Thread Derek Ng
Hi, I'm am trying to follow along with the tutorial, but keep getting this error when I migrate the models. Here is my models.py file for the polls app: from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTim

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
Ah, worked perfectly. Thanks so much! -Justin On Jul 18, 8:52 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Python gothca: you've neglected to put a comma after 'slug' in 'fields': > ('slug').  Single-element tuples need to have a comma after their one > element to force them to be tuples.  In

Re: Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Karen Tracey
keep people from thinking they have to > change it. For whatever reason, though, I keep getting 500s when I try > to set it up this way. The error I'm getting (full traceback after > this message) is "FieldDoesNotExist: Blog has no field named 's'". > > Here

Admin fields setting raises FieldDoesNotExist

2008-07-18 Thread Justin Myers
he error I'm getting (full traceback after this message) is "FieldDoesNotExist: Blog has no field named 's'". Here's the model: --- class Blog(models.Model): title = models.CharField(max_length=100) description = models.TextField() section =

Re: FieldDoesNotExist

2006-07-27 Thread Don Arbow
On Jul 27, 2006, at 1:47 PM, Seth Buntin wrote: > > I keep on getting "FieldDoesNotExist" errors. They are saying that a > field, in this case "p", doesn't exist. I don't know what it is > talking about because I am not trying to call "p"

Re: FieldDoesNotExist

2006-07-27 Thread Malcolm Tredinnick
On Thu, 2006-07-27 at 20:47 +, Seth Buntin wrote: > I keep on getting "FieldDoesNotExist" errors. They are saying that a > field, in this case "p", doesn't exist. I don't know what it is > talking about because I am not trying to call "p&quo

FieldDoesNotExist

2006-07-27 Thread Seth Buntin
I keep on getting "FieldDoesNotExist" errors. They are saying that a field, in this case "p", doesn't exist. I don't know what it is talking about because I am not trying to call "p". Any ideas? --~--~-~--~~~---~--~~ Y

Re: Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Andreas
Hi Jacob, thanks, it's good to know that I'm not going to find the bug in my code. While trying different things, I too found out that adding the "ordering"-option made the listview work again. The first thing I tried was adding ordering = ['theparent']: class FirstChild(meta.Model):

Re: Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Jacob Kaplan-Moss
Programme\Python24\lib\site-packages\django\views\admin\main.py", line 132, in change_list if isinstance(lookup_opts.get_field(order_field).rel, meta.ManyToOne): File "C:\Programme\Python24\lib\site-packages\django\core\meta \__init__.py", line 252, in get_field raise Fiel

Ordering by foreign key results in FieldDoesNotExist-Error

2005-09-13 Thread Andreas
oOne): File "C:\Programme\Python24\lib\site-packages\django\core\meta\__init__.py", line 252, in get_field raise FieldDoesNotExist, "name=%s" % name FieldDoesNotExist: name=_order Any ideas how I can get that to work? Andreas