Giter VIP home page Giter VIP logo

django-livefield's People

Contributors

akshayjshah avatar asherf avatar csizmaziakiki avatar dyve avatar felixsan avatar grantmcconnaughey avatar hearsaydev avatar james-certn avatar lukeburden avatar saex avatar sattailanfear avatar shurph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-livefield's Issues

AttributeError: 'InheritanceQuerySet' object has no attribute 'live'

I just upgraded to Django 1.9 and am getting this error below.

  File "/Users/user/.virtualenvs/myproject/lib/python2.7/site-packages/django/db/models/manager.py", line 223, in all
      return self.get_queryset()
  File "/Users/user/.virtualenvs/myproject/lib/python2.7/site-packages/livefield/managers.py", line 17, in get_queryset
      return qs.live()
AttributeError: 'InheritanceQuerySet' object has no attribute 'live'

GeoDjango extensions need tests

The GeoDjango extensions in livefield.gis need tests. It looks to me like we should be able to test all the functionality we've added on MySQL, Postgres, and SQLite.

@dyve, is this something you know how to tackle? I'll take a crack at it too, but I'm not sure how much progress I'll make.

Problem with Childs

how i can "delete" the childs of my parent object with this Livefieldmodel?

Naming

django_livefield uses non-standard naming. There is still time to fix this (the app is young). I'd suggest this tree

  • livefield
    • init.py
    • fields.py
    • managers.py
    • models.py
    • querysets.py
    • ...

This will help users to navigate the app easily, because the naming scheme is well known. I e-mailed about this a while back with @akshayjshah

South integration needs tests

We should add a test migration to make sure that the South integration works.

Sorry to keep piling on, @dyve - can you take this one on, too? I'd jump in, but I've never used South before.

South cannot introspect live field

I am using South 0.8.4 in a Django 1.6.10 project. I have the most recent version of django-livefield, with the LiveField added to one of my models. When I try to run a schemamigration I receive this error:

(sidekick)sidekick $ ./manage.py schemamigration agency --auto
 ! Cannot freeze field 'agency.agency.live'
 ! (this field has class livefield.fields.LiveField)

 ! South cannot introspect some fields; this is probably because they are custom
 ! fields. If they worked in 0.6 or below, this is because we have removed the
 ! models parser (it often broke things).
 ! To fix this, read http://south.aeracode.org/wiki/MyFieldsDontWork

I noticed the fields.py module has the following lines:

from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ['^livefield.LiveField'])

yet the error is still occurring.

`LiveField.get_prep_lookup()` doesn't work with `value=None`

I haven't tested this, but in reviewing the code I am concerned with this line:

if lookup_type == 'exact' and not value:

In that block it says not to use value=False and to use value=None instead. However, it looks like passing in None will trigger that block, too:

$ ipython
In [1]: not None
Out[1]: True

In [2]: not False
Out[2]: True

Thoughts?

Support GeoModel and GeoQueryset

I'd like to add this, already have it running in a live app. OK? Then I'll make pull request.

I'm just not sure how to add testing for these since I don't have a clue how to set up a spatial test db with the constructs this project is using. Is there anyone that can help out?

Django 2.2 compatible release

Can you please release a version that is compatible with Django 2.2?

I have already run tests locally for PostreSQL and SQLite and they passed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.