Git Product home page Git Product logo

django-birthday's Introduction

There's nothing to see here. Move along. Keep moving.

django-birthday's People

Contributors

bashu avatar gregmuellegger avatar ojii 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

Watchers

 avatar  avatar  avatar  avatar

django-birthday's Issues

migrate error

models:
from birthday.fields import BirthdayField
from birthday.managers import BirthdayManager

birthday = BirthdayField()
objects = BirthdayManager()

when run migrate get error
error msg:django.db.utils.OperationalError: duplicate column name: birthday_dayofyear_internal

may i ask how fix this problem?
thanks for your time

Methods don't work due to the internal field non-updated.

When you already have a model with a DateField for birthdays and you change that field for BirthdayField field you don't have the %s_dayofyear_internal field updated due to this field is updated with a pre_save signal. So, you can not use the provided methods.

You have to use something like [c.save() for c in Client.objects.all()] to update all your Client objects getting the presignal executed for each object.

It's a good idea you to document this problem in your docs.

Do you know a better way to update that field instead of use that loop?

Leap-Year Issue

It seems, that internal help-column for sorting birthdays is not dealing correctly with leap years...anyone to confirm that issue?

parameters for upcoming birthdays

Hi, want to change the period for upcoming BDays being counted from tomorrow, not today. i am new to python and django, so i am sure it is my fault and i forgot something in the syntax:

def my_view(request)

return render (request, bday.html {
'upcoming_birthdays': Employees.objects.get_upcoming_birthdays(after=1)
})

with a "'str' object has no attribute 'timetuple'" error....

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.