Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Options.vitual_fields deprecated in Django 2.0 #81

Open
tonybolanyo opened this issue May 30, 2017 · 3 comments
Open

Warning: Options.vitual_fields deprecated in Django 2.0 #81

tonybolanyo opened this issue May 30, 2017 · 3 comments

Comments

@tonybolanyo
Copy link

When use mixer with Django and pytest, some warnings appear:

RemovedInDjango20Warning: Options.virtual_fields is deprecated, use private_fields instead.

tonybolanyo added a commit to tonybolanyo/mixer that referenced this issue May 30, 2017
@jgirardet
Copy link

do you plane to put it in a new release ?
Because actually we can't use mixer with django 2.0. it's not a warning , it gives an error.

def __load_fields(self):

>       for field in self.__scheme._meta.virtual_fields:
E       AttributeError: 'Options' object has no attribute 'virtual_fi
```elds'

@marazmiki
Copy link
Contributor

marazmiki commented Dec 3, 2017

The same thing. A couple of weeks ago I made a PR with Django 2.0 support, but @klen by some reasons tries to don't notice it. 🤔

Anyway, Django 2.0 just has been released, and I don't want to wait anymore. Let's remember old times when we were putting external dependencies into a "compat" directory :)

@Fingel
Copy link

Fingel commented Dec 15, 2017

This is a bit worrying. Back when we decided to use Mixer it looked like an actively developed project. Now thinking we probably should have stuck with FactoryBoy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants